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

Do not show the "Request Access" button when no printer is connected

CURA-2277
fieldOfView 8 лет назад
Родитель
Сommit
cf2c3e79cf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      UM3InfoComponents.qml

+ 1 - 1
UM3InfoComponents.qml

@@ -28,7 +28,7 @@ Item
             text: catalog.i18nc("@action:button", "Request Access")
             style: UM.Theme.styles.sidebar_action_button
             onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
-            visible: !base.printerAcceptsCommands && !base.authenticationRequested
+            visible: printerConnected && !base.printerAcceptsCommands && !base.authenticationRequested
         }
 
         Button