mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Canceling sending job to cluster no longer results in "still sending print" message.
Previously it would always show this, requiring a restart of Cura before print could be sent. CL-913
This commit is contained in:
parent
33e49bebbe
commit
416f695610
2 changed files with 5 additions and 0 deletions
|
@ -148,6 +148,10 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
||||||
def selectPrinter(self, target_printer: str = "") -> None:
|
def selectPrinter(self, target_printer: str = "") -> None:
|
||||||
self._sending_job.send(target_printer)
|
self._sending_job.send(target_printer)
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
|
def cancelPrintSelection(self) -> None:
|
||||||
|
self._sending_gcode = False
|
||||||
|
|
||||||
## Greenlet to send a job to the printer over the network.
|
## Greenlet to send a job to the printer over the network.
|
||||||
#
|
#
|
||||||
# This greenlet gets called asynchronously in requestWrite. It is a
|
# This greenlet gets called asynchronously in requestWrite. It is a
|
||||||
|
|
|
@ -90,6 +90,7 @@ UM.Dialog
|
||||||
onClicked: {
|
onClicked: {
|
||||||
base.visible = false;
|
base.visible = false;
|
||||||
printerSelectionCombobox.currentIndex = 0
|
printerSelectionCombobox.currentIndex = 0
|
||||||
|
OutputDevice.cancelPrintSelection()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue