mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
settings: enable/disable daemon start/stop buttons
This commit is contained in:
parent
4e7de8c140
commit
482bd30c00
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue