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

Enable Abort Print button while in pre_print.

Jack Ha 8 лет назад
Родитель
Сommit
f60ba6ddf0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      resources/qml/MonitorButton.qml

+ 2 - 2
resources/qml/MonitorButton.qml

@@ -150,7 +150,7 @@ Rectangle
 
         visible: printerConnected
         enabled: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands &&
-                 (Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing")
+                 (["paused", "printing", "pre_print"].indexOf(Cura.MachineManager.printerOutputDevices[0].jobState) >= 0)
 
         height: UM.Theme.getSize("save_button_save_to_button").height
         anchors.top: progressBar.bottom
@@ -227,7 +227,7 @@ Rectangle
 
         visible: printerConnected
         enabled: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands &&
-                 (Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing")
+                 (["paused", "printing"].indexOf(Cura.MachineManager.printerOutputDevices[0].jobState) >= 0)
 
         property bool userClicked: false