mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -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]
|
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):
|
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
|
# Notify the UI that a switch to the print monitor should happen
|
||||||
Application.getInstance().showPrintMonitor.emit(True)
|
Application.getInstance().showPrintMonitor.emit(True)
|
||||||
|
|
|
@ -45,7 +45,7 @@ Column
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
id: extrudersRepeater
|
id: extrudersRepeater
|
||||||
model: activePrinter.extruders
|
model: activePrinter!=null ? activePrinter.extruders : null
|
||||||
|
|
||||||
ExtruderBox
|
ExtruderBox
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue