mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-19 16:13:55 +02:00
Mining: only update mining status when page is open
This commit is contained in:
parent
b31cc36de2
commit
cc4815a3db
@ -575,20 +575,12 @@ Rectangle {
|
|||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
interval: 2000; running: false; repeat: true
|
interval: 2000
|
||||||
|
running: middlePanel.advancedView.state === "Mining" && middlePanel.state === "Advanced" && currentWallet !== undefined && (!persistentSettings.useRemoteNode || persistentSettings.allowRemoteNodeMining)
|
||||||
|
repeat: true
|
||||||
onTriggered: update()
|
onTriggered: update()
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPageCompleted() {
|
|
||||||
console.log("Mining page loaded");
|
|
||||||
update()
|
|
||||||
timer.running = !persistentSettings.useRemoteNode || persistentSettings.allowRemoteNodeMining
|
|
||||||
}
|
|
||||||
|
|
||||||
function onPageClosed() {
|
|
||||||
timer.running = false
|
|
||||||
}
|
|
||||||
|
|
||||||
function startP2PoolLocal() {
|
function startP2PoolLocal() {
|
||||||
var noSync = false;
|
var noSync = false;
|
||||||
var customDaemonArgs = persistentSettings.daemonFlags.toLowerCase();
|
var customDaemonArgs = persistentSettings.daemonFlags.toLowerCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user