Disable connection status icon for drop down in WorkspaceDialog. It is not possible to display the correct status for LAN printers without making them the active printer anyway.

CURA-9424
This commit is contained in:
Joey de l'Arago 2022-11-15 15:10:44 +01:00
parent 28862c89e5
commit a30fbf5a8f
2 changed files with 3 additions and 2 deletions

View file

@ -116,6 +116,7 @@ UM.Dialog
isCloudRegistered: false isCloudRegistered: false
isNetworkPrinter: manager.isNetworked isNetworkPrinter: manager.isNetworked
isGroup: manager.isAbstractMachine isGroup: manager.isAbstractMachine
connectionStatus: ""
minDropDownWidth: machineSelector.width minDropDownWidth: machineSelector.width

View file

@ -33,7 +33,7 @@ Cura.ExpandablePopup
property list<Item> buttons property list<Item> buttons
readonly property string connectionStatus: { property string connectionStatus: {
if (isNetworkPrinter) if (isNetworkPrinter)
{ {
return "printer_connected" return "printer_connected"
@ -148,7 +148,7 @@ Cura.ExpandablePopup
color: connectionStatus == "printer_cloud_not_available" ? UM.Theme.getColor("cloud_unavailable") : UM.Theme.getColor("primary") color: connectionStatus == "printer_cloud_not_available" ? UM.Theme.getColor("cloud_unavailable") : UM.Theme.getColor("primary")
visible: isNetworkPrinter || isCloudRegistered visible: (isNetworkPrinter || isCloudRegistered) && source != ""
// Make a themable circle in the background so we can change it in other themes // Make a themable circle in the background so we can change it in other themes
Rectangle Rectangle