From 6ba65d4caa88cbebf08f2d73bdfcbffdf6581d1a Mon Sep 17 00:00:00 2001 From: stoffu Date: Sat, 7 Apr 2018 14:31:11 +0900 Subject: [PATCH] Settings: use checkbox instead of button for daemon mode switching --- pages/Settings.qml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/Settings.qml b/pages/Settings.qml index abfc0e05..9af30de7 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -201,29 +201,29 @@ Rectangle { Layout.fillWidth: true LabelSubheader { - text: qsTr("Wallet mode") + translationManager.emptyString + text: qsTr("Daemon mode") + translationManager.emptyString } } - RowLayout { - StandardButton { + ColumnLayout { + CheckBox { id: remoteDisconnect - small: true - enabled: persistentSettings.useRemoteNode - Layout.fillWidth: false + checked: !persistentSettings.useRemoteNode text: qsTr("Local Node") + translationManager.emptyString onClicked: { + persistentSettings.useRemoteNode = false; + remoteConnect.checked = false; appWindow.disconnectRemoteNode(); } } - StandardButton { + CheckBox { id: remoteConnect - small: true - enabled: !persistentSettings.useRemoteNode - Layout.fillWidth: false + checked: persistentSettings.useRemoteNode text: qsTr("Remote Node") + translationManager.emptyString onClicked: { + persistentSettings.useRemoteNode = true; + remoteDisconnect.checked = false; appWindow.connectRemoteNode(); } }