From dc2384c92d7327df9116ed63e2246cca7d01f1f6 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 30 Jun 2016 11:15:32 +0200 Subject: [PATCH] Disable monitor buttons when there is no job running CURA-1036 --- resources/qml/MonitorButton.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/qml/MonitorButton.qml b/resources/qml/MonitorButton.qml index efffd890a1..10fc44b3f0 100644 --- a/resources/qml/MonitorButton.qml +++ b/resources/qml/MonitorButton.qml @@ -109,8 +109,9 @@ Rectangle id: abortButton visible: printerConnected - height: UM.Theme.getSize("save_button_save_to_button").height + enabled: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing" + height: UM.Theme.getSize("save_button_save_to_button").height anchors.top: progressBar.bottom anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.right: parent.right @@ -154,9 +155,10 @@ Rectangle { id: pauseButton - height: UM.Theme.getSize("save_button_save_to_button").height visible: printerConnected + enabled: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" || Cura.MachineManager.printerOutputDevices[0].jobState == "printing" + height: UM.Theme.getSize("save_button_save_to_button").height anchors.top: progressBar.bottom anchors.topMargin: UM.Theme.getSize("default_margin").height anchors.right: abortButton.left