aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-10-28 00:24:02 +0200
committerJacob Brydolf <jacob@brydolf.net>2016-10-28 00:24:02 +0200
commit6aa5ced4f7fce89a5616a6b24315f172d712b683 (patch)
tree97609ac74a235834f16bcd218a211a70b0fe2a36
parentd22e02ac2a0b802f9cc57184b909d92349f810e0 (diff)
downloadmonzero-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.qml20
1 files changed, 12 insertions, 8 deletions
diff --git a/main.qml b/main.qml
index 5f7035f7..440b79f4 100644
--- a/main.qml
+++ b/main.qml
@@ -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();