diff --git a/main.qml b/main.qml index 0672693c..fca2fdbf 100644 --- a/main.qml +++ b/main.qml @@ -358,6 +358,10 @@ ApplicationWindow { middlePanel.updateStatus(); leftPanel.networkStatus.connected = status + // update local daemon status. + if(!isMobile && walletManager.isDaemonLocal(appWindow.persistentSettings.daemon_address)) + daemonRunning = status; + // Update fee multiplier dropdown on transfer page middlePanel.transferView.updatePriorityDropdown(); diff --git a/pages/Settings.qml b/pages/Settings.qml index 1ac6ac4e..199855ca 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -51,7 +51,7 @@ Rectangle { console.log("Settings page loaded"); if(typeof daemonManager != "undefined"){ - appWindow.daemonRunning = persistentSettings.useRemoteNode ? false : daemonManager.running(persistentSettings.nettype); + daemonRunning = persistentSettings.useRemoteNode ? false : appWindow.daemonRunning; } logLevelDropdown.update() @@ -353,7 +353,7 @@ Rectangle { StandardButton { id: startDaemonButton small: true - visible: !appWindow.daemonRunning + visible: !daemonRunning text: qsTr("Start Local Node") + translationManager.emptyString onClicked: { // Update bootstrap daemon address @@ -368,7 +368,7 @@ Rectangle { StandardButton { id: stopDaemonButton small: true - visible: appWindow.daemonRunning + visible: daemonRunning text: qsTr("Stop Local Node") + translationManager.emptyString onClicked: { appWindow.stopDaemon()