aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index b1e58663..58483adb 100644
--- a/main.qml
+++ b/main.qml
@@ -602,6 +602,9 @@ ApplicationWindow {
function connectRemoteNode() {
console.log("connecting remote node");
+ p2poolManager.exit();
+ p2poolManager.getStatus();
+
const callback = function() {
persistentSettings.useRemoteNode = true;
const remoteNode = remoteNodesModel.currentRemoteNode();
@@ -630,6 +633,10 @@ ApplicationWindow {
return;
console.log("disconnecting remote node");
+
+ p2poolManager.exit();
+ p2poolManager.getStatus();
+
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress
currentWallet.setDaemonLogin("", "");
@@ -748,6 +755,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();