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

@ -134,7 +134,7 @@ Cura.ExpandablePopup
property bool is_connected: false //If current machine is connected to a printer. Only evaluated upon making popup visible.
onVisibleChanged:
{
is_connected = Cura.MachineManager.activeMachineNetworkKey !== "" && Cura.MachineManager.printerConnected //Re-evaluate.
is_connected = Cura.MachineManager.activeMachineHasRemoteConnection && Cura.MachineManager.printerConnected //Re-evaluate.
}
property int configuration_method: is_connected ? ConfigurationMenu.ConfigurationMethod.Auto : ConfigurationMenu.ConfigurationMethod.Custom //Auto if connected to a printer at start-up, or Custom if not.