From 34e37af8c9226518d8d80aff75515182bffc820b Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 1 Oct 2015 17:51:54 +0200 Subject: [PATCH] Also disable output device selection when main save button is disabled CURA-209 #done --- resources/qml/SaveButton.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/qml/SaveButton.qml b/resources/qml/SaveButton.qml index a8861331e0..e104651ca4 100644 --- a/resources/qml/SaveButton.qml +++ b/resources/qml/SaveButton.qml @@ -245,12 +245,22 @@ Rectangle { anchors.rightMargin: UM.Theme.sizes.default_margin.width width: UM.Theme.sizes.save_button_save_to_button.height height: UM.Theme.sizes.save_button_save_to_button.height + enabled: base.progress > 0.99 && base.activity == true //iconSource: UM.Theme.icons[UM.OutputDeviceManager.activeDeviceIconName]; style: ButtonStyle { background: Rectangle { id: deviceSelectionIcon - color: control.hovered ? UM.Theme.colors.load_save_button_hover : UM.Theme.colors.load_save_button + color: { + if(!control.enabled){ + return UM.Theme.colors.button; + } + else if(control.enabled && control.hovered) { + return UM.Theme.colors.load_save_button_hover + } else { + return UM.Theme.colors.load_save_button + } + } Behavior on color { ColorAnimation { duration: 50; } } anchors.left: parent.left anchors.leftMargin: UM.Theme.sizes.save_button_text_margin.width / 2;