mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
CURA-5158 The printer menu now reacts to the global container changes so
it is updates even if there is no connection.
This commit is contained in:
parent
8c5673dd3c
commit
2ee42dda33
3 changed files with 24 additions and 5 deletions
|
@ -83,4 +83,16 @@ ToolButton
|
||||||
}
|
}
|
||||||
|
|
||||||
menu: PrinterMenu { }
|
menu: PrinterMenu { }
|
||||||
|
|
||||||
|
// Make the toolbutton react when the global container changes, otherwise if Cura is not connected to the printer,
|
||||||
|
// switching printers make no reaction
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.MachineManager
|
||||||
|
onGlobalContainerChanged:
|
||||||
|
{
|
||||||
|
base.isNetworkPrinter = Cura.MachineManager.activeMachineNetworkKey != ""
|
||||||
|
base.printerConnected = Cura.MachineManager.printerOutputDevices.length != 0
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,11 +97,6 @@ Button
|
||||||
{
|
{
|
||||||
target: Cura.MachineManager
|
target: Cura.MachineManager
|
||||||
onCurrentConfigurationChanged: updateOnSync()
|
onCurrentConfigurationChanged: updateOnSync()
|
||||||
}
|
|
||||||
|
|
||||||
Connections
|
|
||||||
{
|
|
||||||
target: Cura.MachineManager
|
|
||||||
onOutputDevicesChanged: updateOnSync()
|
onOutputDevicesChanged: updateOnSync()
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -661,4 +661,16 @@ Rectangle
|
||||||
watchedProperties: [ "value" ]
|
watchedProperties: [ "value" ]
|
||||||
storeIndex: 0
|
storeIndex: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make the ConfigurationSelector react when the global container changes, otherwise if Cura is not connected to the printer,
|
||||||
|
// switching printers make no reaction
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.MachineManager
|
||||||
|
onGlobalContainerChanged:
|
||||||
|
{
|
||||||
|
base.isNetworkPrinter = Cura.MachineManager.activeMachineNetworkKey != ""
|
||||||
|
base.printerConnected = Cura.MachineManager.printerOutputDevices.length != 0
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue