mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Merge pull request #1287
6ba65d4
Settings: use checkbox instead of button for daemon mode switching
This commit is contained in:
commit
7251254d8f
1 changed files with 10 additions and 10 deletions
|
@ -201,29 +201,29 @@ Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
LabelSubheader {
|
LabelSubheader {
|
||||||
text: qsTr("Wallet mode") + translationManager.emptyString
|
text: qsTr("Daemon mode") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
ColumnLayout {
|
||||||
StandardButton {
|
CheckBox {
|
||||||
id: remoteDisconnect
|
id: remoteDisconnect
|
||||||
small: true
|
checked: !persistentSettings.useRemoteNode
|
||||||
enabled: persistentSettings.useRemoteNode
|
|
||||||
Layout.fillWidth: false
|
|
||||||
text: qsTr("Local Node") + translationManager.emptyString
|
text: qsTr("Local Node") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
persistentSettings.useRemoteNode = false;
|
||||||
|
remoteConnect.checked = false;
|
||||||
appWindow.disconnectRemoteNode();
|
appWindow.disconnectRemoteNode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardButton {
|
CheckBox {
|
||||||
id: remoteConnect
|
id: remoteConnect
|
||||||
small: true
|
checked: persistentSettings.useRemoteNode
|
||||||
enabled: !persistentSettings.useRemoteNode
|
|
||||||
Layout.fillWidth: false
|
|
||||||
text: qsTr("Remote Node") + translationManager.emptyString
|
text: qsTr("Remote Node") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
persistentSettings.useRemoteNode = true;
|
||||||
|
remoteDisconnect.checked = false;
|
||||||
appWindow.connectRemoteNode();
|
appWindow.connectRemoteNode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue