mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
main: make variable used once local to function
This commit is contained in:
parent
d1e8b6f823
commit
9d6038e0a3
1 changed files with 1 additions and 2 deletions
3
main.qml
3
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")
|
||||
|
|
Loading…
Reference in a new issue