mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Cluster shows default controlItem again when a specific printer is selected
CL-541
This commit is contained in:
parent
d8c4834362
commit
339d7ca4c9
2 changed files with 9 additions and 1 deletions
|
@ -61,6 +61,14 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
|
||||
self._active_printer = None # type: Optional[PrinterOutputModel]
|
||||
|
||||
@pyqtProperty(QObject, notify=activePrinterChanged)
|
||||
def controlItem(self):
|
||||
if self._active_printer is None:
|
||||
return super().controlItem
|
||||
else:
|
||||
# Let cura use the default.
|
||||
return None
|
||||
|
||||
def requestWrite(self, nodes, file_name=None, filter_by_machine=False, file_handler=None, **kwargs):
|
||||
# Notify the UI that a switch to the print monitor should happen
|
||||
Application.getInstance().showPrintMonitor.emit(True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue