aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authordevhyper <57877914+devhyper@users.noreply.github.com>2023-01-31 18:23:20 -0800
committerdevhyper <57877914+devhyper@users.noreply.github.com>2023-01-31 18:23:20 -0800
commit757bc7d7b953ca997aaa2897d79ddd4c37caa45a (patch)
tree5adde2cb9eb4f7d28fa567f08f619fb730f2a69a /main.qml
parentb7ba9437d8cca6df4ecff7f5ae38a53cac5e26b2 (diff)
downloadmonzero-gui-757bc7d7b953ca997aaa2897d79ddd4c37caa45a.tar.gz
monzero-gui-757bc7d7b953ca997aaa2897d79ddd4c37caa45a.tar.xz
monzero-gui-757bc7d7b953ca997aaa2897d79ddd4c37caa45a.zip
p2pool: Restart monerod only when needed and with proper args
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index b1e58663..390a9dfb 100644
--- a/main.qml
+++ b/main.qml
@@ -748,6 +748,12 @@ ApplicationWindow {
currentWallet.startRefresh();
informationPopup.title = qsTr("Daemon failed to start") + translationManager.emptyString;
informationPopup.text = error + ".\n\n" + qsTr("Please check your wallet and daemon log for errors. You can also try to start %1 manually.").arg((isWindows)? "monerod.exe" : "monerod")
+ if (middlePanel.advancedView.miningView.stopMiningEnabled == true) {
+ walletManager.stopMining()
+ p2poolManager.exit()
+ middlePanel.advancedView.miningView.update()
+ informationPopup.text += qsTr("\n\nExiting p2pool. Please check that port 18083 is available.") + translationManager.emptyString;
+ }
informationPopup.icon = StandardIcon.Critical
informationPopup.onCloseCallback = null
informationPopup.open();