diff --git a/main.qml b/main.qml index 4cde64e3..1458b5ce 100644 --- a/main.qml +++ b/main.qml @@ -399,6 +399,9 @@ ApplicationWindow { if (!walletInitialized) { currentWallet.history.refresh(currentWallet.currentSubaddressAccount) walletInitialized = true + + // check if daemon was already mining and add mining logo if true + middlePanel.miningView.update(); } } diff --git a/pages/Mining.qml b/pages/Mining.qml index 92afaf6a..c53992c0 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -229,7 +229,7 @@ Rectangle { } function updateStatusText() { - if (walletManager.isMining()) { + if (appWindow.isMining) { statusText.text = qsTr("Mining at %1 H/s").arg(walletManager.miningHashRate()) + translationManager.emptyString; } else { @@ -238,10 +238,10 @@ Rectangle { } function update() { - updateStatusText() - startSoloMinerButton.enabled = !walletManager.isMining() - stopSoloMinerButton.enabled = !startSoloMinerButton.enabled appWindow.isMining = walletManager.isMining() + updateStatusText() + startSoloMinerButton.enabled = !appWindow.isMining + stopSoloMinerButton.enabled = !startSoloMinerButton.enabled } MoneroComponents.StandardDialog { diff --git a/pages/Transfer.qml b/pages/Transfer.qml index f2939caa..adad5fd2 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -688,8 +688,6 @@ Rectangle { // Light wallet is always ready pageRoot.enabled = true; root.warningContent = ""; - // check if daemon was already mining and add mining logo if true - middlePanel.miningView.update(); } } }