mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Use connection type instead of um_network_key to see if a printer has a network connection
CURA-6011
This commit is contained in:
parent
b8a4d8e80d
commit
938287095f
5 changed files with 13 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue