Просмотр исходного кода

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
Joey de l'Arago 2 лет назад
Родитель
Сommit
a30fbf5a8f

+ 1 - 0
plugins/3MFReader/WorkspaceDialog.qml

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

+ 2 - 2
resources/qml/PrinterSelector/MachineSelector.qml

@@ -33,7 +33,7 @@ Cura.ExpandablePopup
 
     property list<Item> buttons
 
-    readonly property string connectionStatus: {
+    property string connectionStatus: {
         if (isNetworkPrinter)
         {
             return "printer_connected"
@@ -148,7 +148,7 @@ Cura.ExpandablePopup
 
             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
             Rectangle