diff options
| author | Jacob Brydolf <jacob@brydolf.net> | 2016-10-28 00:24:02 +0200 |
|---|---|---|
| committer | Jacob Brydolf <jacob@brydolf.net> | 2016-10-28 00:24:02 +0200 |
| commit | 6aa5ced4f7fce89a5616a6b24315f172d712b683 (patch) | |
| tree | 97609ac74a235834f16bcd218a211a70b0fe2a36 | |
| parent | d22e02ac2a0b802f9cc57184b909d92349f810e0 (diff) | |
| download | monzero-gui-6aa5ced4f7fce89a5616a6b24315f172d712b683.tar.gz monzero-gui-6aa5ced4f7fce89a5616a6b24315f172d712b683.tar.xz monzero-gui-6aa5ced4f7fce89a5616a6b24315f172d712b683.zip | |
keep restoring state until first refresh is finished
| -rw-r--r-- | main.qml | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -246,9 +246,18 @@ ApplicationWindow { leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock); // Store wallet after every refresh. - //TODO: Doesn't need path after creation. Change libwalletqt - currentWallet.store("") - console.log("Saving wallet"); + if (currentWallet.blockChainHeight() > 1){ + + //TODO: Doesn't need path after creation. Change libwalletqt + currentWallet.store("") + console.log("Saving wallet"); + + // recovering from seed is finished after first refresh + if(persistentSettings.is_recovering) { + persistentSettings.is_recovering = false + } + } + isNewWallet = false // initialize transaction history once wallet is initializef first time; @@ -257,11 +266,6 @@ ApplicationWindow { walletInitialized = true } - // recovering from seed is finished after first refresh - if(persistentSettings.is_recovering) { - persistentSettings.is_recovering = false - } - leftPanel.networkStatus.connected = currentWallet.connected onWalletUpdate(); |
