From 10d3d3f577c6667cdc4988be9c2336136711b594 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Mon, 17 Oct 2016 19:13:56 +0200 Subject: [PATCH] Save wallet after every refresh --- main.qml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.qml b/main.qml index 0f937859..634a1452 100644 --- a/main.qml +++ b/main.qml @@ -245,12 +245,9 @@ ApplicationWindow { var dTargetBlock = currentWallet.daemonBlockChainTargetHeight(); leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock); - // Store wallet after first refresh. To prevent broken wallet after a crash - if(isNewWallet && currentWallet.blockChainHeight() > 0){ - currentWallet.store(persistentSettings.wallet_path) - isNewWallet = false - console.log("wallet stored after first successfull refresh") - } + // Store wallet after every refresh. + currentWallet.store(persistentSettings.wallet_path) + // initialize transaction history once wallet is initializef first time; if (!walletInitialized) {