mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:05:57 +08:00
Cluster shows default controlItem again when a specific printer is selected
CL-541
This commit is contained in:
parent
d8c4834362
commit
339d7ca4c9
@ -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…
x
Reference in New Issue
Block a user