aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-06-21 01:24:39 +0200
committerselsta <selsta@sent.at>2019-06-21 01:24:39 +0200
commit9d6038e0a38c1ff83279daf6bb808817e806aa8f (patch)
tree97eb0f277dc52a94d916db16dec6e2db8ebe0c0b
parentd1e8b6f823d85a5d258a5c882aae31afd5d7f530 (diff)
downloadmonzero-gui-9d6038e0a38c1ff83279daf6bb808817e806aa8f.tar.gz
monzero-gui-9d6038e0a38c1ff83279daf6bb808817e806aa8f.tar.xz
monzero-gui-9d6038e0a38c1ff83279daf6bb808817e806aa8f.zip
main: make variable used once local to function
-rw-r--r--main.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.qml b/main.qml
index d4bb6838..6c14c355 100644
--- a/main.qml
+++ b/main.qml
@@ -69,7 +69,6 @@ ApplicationWindow {
property string walletName
property bool viewOnly: false
property bool foundNewBlock: false
- property int timeToUnlock: 0
property bool qrScannerEnabled: (typeof builtWithScanner != "undefined") && builtWithScanner
property int blocksToSync: 1
property var isMobile: (appWindow.width > 700 && !isAndroid) ? false : true
@@ -594,7 +593,7 @@ ApplicationWindow {
foundNewBlock = false;
console.log("New block found - updating history")
currentWallet.history.refresh(currentWallet.currentSubaddressAccount)
- timeToUnlock = currentWallet.history.minutesToUnlock
+ var timeToUnlock = currentWallet.history.minutesToUnlock
leftPanel.minutesToUnlockTxt = (timeToUnlock > 0)? (timeToUnlock == 20)? qsTr("Unlocked balance (waiting for block)") : qsTr("Unlocked balance (~%1 min)").arg(timeToUnlock) : qsTr("Unlocked balance");
if(middlePanel.state == "History")