Skip to content

Commit

Permalink
Merge pull request #37 from stoffu/aeon-fix-daemon-start-stop
Browse files Browse the repository at this point in the history
settings: implemented correct 'Start/Stop daemon' button logic /monero-gui#1728
  • Loading branch information
aeonix authored Nov 27, 2019
2 parents 4c5bd52 + 4de6e30 commit 67521b1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pages/settings/SettingsNode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -382,28 +382,32 @@ Rectangle{
Layout.preferredWidth: parent.width

Rectangle {
id: rectStopNode
color: MoneroComponents.Style.buttonBackgroundColorDisabled
width: btnStopNode.width + 40
id: rectStartStopNode
color: MoneroComponents.Style.buttonBackgroundColor
width: btnStartStopNode.width + 40
height: 24
radius: 2

Text {
id: btnStopNode
id: btnStartStopNode
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
color: MoneroComponents.Style.defaultFontColor
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 14 * scaleRatio
font.bold: true
text: qsTr("Stop local node") + translationManager.emptyString
text: (appWindow.daemonRunning ? qsTr("Stop local node") : qsTr("Start daemon")) + translationManager.emptyString
}

MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
appWindow.stopDaemon();
if (appWindow.daemonRunning) {
appWindow.stopDaemon();
} else {
appWindow.startDaemon(persistentSettings.daemonFlags);
}
}
}
}
Expand Down

0 comments on commit 67521b1

Please sign in to comment.