CURA-5158 Create a custom signal that is emitted when global container

changes and output devices change.
This commit is contained in:
Diego Prado Gesto 2018-03-28 11:07:48 +02:00
parent 35cd4eb572
commit 79daf3706b
9 changed files with 20 additions and 11 deletions

View file

@ -20,7 +20,7 @@ Rectangle
// Is there an output device for this printer?
property bool isNetworkPrinter: Cura.MachineManager.activeMachineNetworkKey != ""
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
property bool printerConnected: Cura.MachineManager.printerConnected
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
property var connectedPrinter: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null