mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Removed debug print statements
This commit is contained in:
parent
2bd7b5764d
commit
251c043add
2 changed files with 1 additions and 3 deletions
|
@ -155,7 +155,6 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
||||||
self._printer_connections[serial_port] = connection
|
self._printer_connections[serial_port] = connection
|
||||||
|
|
||||||
def _onPrinterConnectionStateChanged(self, serial_port):
|
def _onPrinterConnectionStateChanged(self, serial_port):
|
||||||
print("On state changed: ", self)
|
|
||||||
if self._printer_connections[serial_port].isConnected():
|
if self._printer_connections[serial_port].isConnected():
|
||||||
self.getOutputDeviceManager().addOutputDevice(self._printer_connections[serial_port])
|
self.getOutputDeviceManager().addOutputDevice(self._printer_connections[serial_port])
|
||||||
else:
|
else:
|
||||||
|
@ -164,7 +163,6 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
||||||
|
|
||||||
@pyqtProperty(QObject , notify = printerConnectionStateChanged)
|
@pyqtProperty(QObject , notify = printerConnectionStateChanged)
|
||||||
def connectedPrinterList(self):
|
def connectedPrinterList(self):
|
||||||
print("ConnectedPrinterList: ", self)
|
|
||||||
self._printer_connections_model = ListModel()
|
self._printer_connections_model = ListModel()
|
||||||
self._printer_connections_model.addRoleName(Qt.UserRole + 1,"name")
|
self._printer_connections_model.addRoleName(Qt.UserRole + 1,"name")
|
||||||
self._printer_connections_model.addRoleName(Qt.UserRole + 2, "printer")
|
self._printer_connections_model.addRoleName(Qt.UserRole + 2, "printer")
|
||||||
|
|
|
@ -18,7 +18,7 @@ Column
|
||||||
text: parent.title
|
text: parent.title
|
||||||
font.pointSize: 18;
|
font.pointSize: 18;
|
||||||
}
|
}
|
||||||
Component.onCompleted: console.log(UM.USBPrinterManager.connectedPrinterList.count)
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
//: Add Printer wizard page description
|
//: Add Printer wizard page description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue