From 482bd30c0066c78b0ce69d375b2831193a395475 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Sun, 6 Nov 2016 23:34:07 +0100 Subject: [PATCH] settings: enable/disable daemon start/stop buttons --- pages/Settings.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/Settings.qml b/pages/Settings.qml index 9fc76df6..8a946fdf 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -281,6 +281,7 @@ Rectangle { StandardButton { visible: true + enabled: !appWindow.daemonRunning id: startDaemonButton width: 110 text: qsTr("Start daemon") + translationManager.emptyString @@ -294,7 +295,8 @@ Rectangle { } StandardButton { - visible: false + visible: true + enabled: appWindow.daemonRunning id: stopDaemonButton width: 110 text: qsTr("Stop daemon") + translationManager.emptyString @@ -303,8 +305,7 @@ Rectangle { releasedColor: "#FF6C3C" pressedColor: "#FF4304" onClicked: { - - //daemonManager.stop(); + daemonManager.stop(); } } }