1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-28 09:31:37 +01:00

Merge pull request #1728

808ecf5 settings-node: implement correct 'Start/Stop daemon' button logic (xiphon)
42a9e2f settings-node: change element id 'btnStopNode' to 'btnStartStopNode' (xiphon)
This commit is contained in:
luigi1111 2018-11-09 13:24:36 -06:00
commit 270a637924
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -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);
}
}
}
}