mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
don't check local daemon status on settings page, update on onWalletConnectionStatusChanged
This commit is contained in:
parent
cd46edb23f
commit
f258ae4b60
2 changed files with 7 additions and 3 deletions
4
main.qml
4
main.qml
|
@ -358,6 +358,10 @@ ApplicationWindow {
|
||||||
middlePanel.updateStatus();
|
middlePanel.updateStatus();
|
||||||
leftPanel.networkStatus.connected = status
|
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
|
// Update fee multiplier dropdown on transfer page
|
||||||
middlePanel.transferView.updatePriorityDropdown();
|
middlePanel.transferView.updatePriorityDropdown();
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ Rectangle {
|
||||||
console.log("Settings page loaded");
|
console.log("Settings page loaded");
|
||||||
|
|
||||||
if(typeof daemonManager != "undefined"){
|
if(typeof daemonManager != "undefined"){
|
||||||
appWindow.daemonRunning = persistentSettings.useRemoteNode ? false : daemonManager.running(persistentSettings.nettype);
|
daemonRunning = persistentSettings.useRemoteNode ? false : appWindow.daemonRunning;
|
||||||
}
|
}
|
||||||
|
|
||||||
logLevelDropdown.update()
|
logLevelDropdown.update()
|
||||||
|
@ -353,7 +353,7 @@ Rectangle {
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: startDaemonButton
|
id: startDaemonButton
|
||||||
small: true
|
small: true
|
||||||
visible: !appWindow.daemonRunning
|
visible: !daemonRunning
|
||||||
text: qsTr("Start Local Node") + translationManager.emptyString
|
text: qsTr("Start Local Node") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
// Update bootstrap daemon address
|
// Update bootstrap daemon address
|
||||||
|
@ -368,7 +368,7 @@ Rectangle {
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: stopDaemonButton
|
id: stopDaemonButton
|
||||||
small: true
|
small: true
|
||||||
visible: appWindow.daemonRunning
|
visible: daemonRunning
|
||||||
text: qsTr("Stop Local Node") + translationManager.emptyString
|
text: qsTr("Stop Local Node") + translationManager.emptyString
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appWindow.stopDaemon()
|
appWindow.stopDaemon()
|
||||||
|
|
Loading…
Reference in a new issue