Merge pull request #1454

f258ae4 don't check local daemon status on settings page, update on onWalletConnectionStatusChanged (pazos)
This commit is contained in:
luigi1111 2018-07-17 16:54:17 -05:00
commit 2633419c8e
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 7 additions and 3 deletions

View file

@ -357,6 +357,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();

View file

@ -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()