Use connection type instead of um_network_key to see if a printer has a network connection

CURA-6011
This commit is contained in:
Jaime van Kessel 2018-12-17 10:47:14 +01:00
parent b8a4d8e80d
commit 938287095f
5 changed files with 13 additions and 5 deletions

View file

@ -11,7 +11,7 @@ Cura.ExpandablePopup
{
id: machineSelector
property bool isNetworkPrinter: Cura.MachineManager.activeMachineNetworkKey != ""
property bool isNetworkPrinter: Cura.MachineManager.activeMachineHasRemoteConnection
property bool isPrinterConnected: Cura.MachineManager.printerConnected
property var outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null

View file

@ -30,6 +30,7 @@ ListView
{
text: model.name
width: listView.width
outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
}
}
/*