diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-12-19 19:36:17 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-12-19 19:36:17 -0500 |
| commit | bd3b26c33da3bc2b7ce841671eb30118f32a12ef (patch) | |
| tree | 0c3314c0afa1f3fb078b08b4801270a18f8a4e4d /pages | |
| parent | 66f5b7310ff39e6df6706d44e11961be10544378 (diff) | |
| parent | 50cb72656afbd1601a6fb794d8961c49d1dd2ac2 (diff) | |
| download | monzero-gui-bd3b26c33da3bc2b7ce841671eb30118f32a12ef.tar.gz monzero-gui-bd3b26c33da3bc2b7ce841671eb30118f32a12ef.tar.xz monzero-gui-bd3b26c33da3bc2b7ce841671eb30118f32a12ef.zip | |
Merge pull request #2604
50cb726 do not ask to start daemon if in remote node mode (tobtoht)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/Mining.qml | 10 | ||||
| -rw-r--r-- | pages/Transfer.qml | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pages/Mining.qml b/pages/Mining.qml index 46e18646..b1756e82 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -57,13 +57,13 @@ Rectangle { MoneroComponents.WarningBox { Layout.bottomMargin: 8 text: qsTr("Mining is only available on local daemons.") + translationManager.emptyString - visible: !walletManager.isDaemonLocal(appWindow.currentDaemonAddress) + visible: persistentSettings.useRemoteNode } MoneroComponents.WarningBox { Layout.bottomMargin: 8 text: qsTr("Your daemon must be synchronized before you can start mining") + translationManager.emptyString - visible: walletManager.isDaemonLocal(appWindow.currentDaemonAddress) && !appWindow.daemonSynced + visible: !persistentSettings.useRemoteNode && !appWindow.daemonSynced } MoneroComponents.TextPlain { @@ -199,7 +199,7 @@ Rectangle { } else { errorPopup.title = qsTr("Error starting mining") + translationManager.emptyString; errorPopup.text = qsTr("Couldn't start mining.<br>") + translationManager.emptyString - if (!walletManager.isDaemonLocal(appWindow.currentDaemonAddress)) + if (persistentSettings.useRemoteNode) errorPopup.text += qsTr("Mining is only available on local daemons. Run a local daemon to be able to mine.<br>") + translationManager.emptyString errorPopup.icon = StandardIcon.Critical errorPopup.open() @@ -259,7 +259,7 @@ Rectangle { } function onMiningStatus(isMining) { - var daemonReady = walletManager.isDaemonLocal(appWindow.currentDaemonAddress) && appWindow.daemonSynced + var daemonReady = !persistentSettings.useRemoteNode && appWindow.daemonSynced appWindow.isMining = isMining; updateStatusText() startSoloMinerButton.enabled = !appWindow.isMining && daemonReady @@ -284,7 +284,7 @@ Rectangle { function onPageCompleted() { console.log("Mining page loaded"); update() - timer.running = walletManager.isDaemonLocal(appWindow.currentDaemonAddress) + timer.running = !persistentSettings.useRemoteNode } function onPageClosed() { diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 9c298773..e9537897 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -558,7 +558,7 @@ Rectangle { id: importKeyImagesButton text: qsTr("Import key images") + translationManager.emptyString small: true - visible: appWindow.viewOnly && walletManager.isDaemonLocal(appWindow.currentDaemonAddress) + visible: appWindow.viewOnly && !persistentSettings.useRemoteNode enabled: pageRoot.enabled onClicked: { console.log("Transfer: import key images clicked") @@ -710,7 +710,7 @@ Rectangle { function updateStatus() { var messageNotConnected = qsTr("Wallet is not connected to daemon."); - if(appWindow.walletMode >= 2) messageNotConnected += root.startLinkText; + if(appWindow.walletMode >= 2 && !persistentSettings.useRemoteNode) messageNotConnected += root.startLinkText; pageRoot.enabled = true; if(typeof currentWallet === "undefined") { root.warningContent = messageNotConnected; |
