From 9d6038e0a38c1ff83279daf6bb808817e806aa8f Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 21 Jun 2019 01:24:39 +0200 Subject: [PATCH 1/2] main: make variable used once local to function --- main.qml | 3 +-- 1 file changed, 1 insertion(+), 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") From df50c5111b94fb0ec58887d1b0bab6c8bb07d8fa Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 21 Jun 2019 01:54:17 +0200 Subject: [PATCH 2/2] main: remove unused variables --- main.qml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.qml b/main.qml index 6c14c355..10b93311 100644 --- a/main.qml +++ b/main.qml @@ -51,9 +51,7 @@ ApplicationWindow { property var currentItem property bool hideBalanceForced: false - property bool whatIsEnable: false property bool ctrlPressed: false - property bool osx: false property alias persistentSettings : persistentSettings property var currentWallet; property var transaction; @@ -81,7 +79,6 @@ ApplicationWindow { // Default daemon addresses readonly property string localDaemonAddress : "localhost:" + getDefaultDaemonRpcPort(persistentSettings.nettype) property string currentDaemonAddress; - property bool startLocalNodeCancelled: false property int disconnectedEpoch: 0 property int estimatedBlockchainSize: 75 // GB property alias viewState: rootItem.state @@ -1570,7 +1567,6 @@ ApplicationWindow { onRejected: { middlePanel.settingsView.settingsStateViewState = "Node"; loadPage("Settings"); - startLocalNodeCancelled = true } }