mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Save wallet after every refresh
This commit is contained in:
parent
05046a5f21
commit
10d3d3f577
1 changed files with 3 additions and 6 deletions
7
main.qml
7
main.qml
|
@ -245,12 +245,9 @@ ApplicationWindow {
|
||||||
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
|
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
|
||||||
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
||||||
|
|
||||||
// Store wallet after first refresh. To prevent broken wallet after a crash
|
// Store wallet after every refresh.
|
||||||
if(isNewWallet && currentWallet.blockChainHeight() > 0){
|
|
||||||
currentWallet.store(persistentSettings.wallet_path)
|
currentWallet.store(persistentSettings.wallet_path)
|
||||||
isNewWallet = false
|
|
||||||
console.log("wallet stored after first successfull refresh")
|
|
||||||
}
|
|
||||||
|
|
||||||
// initialize transaction history once wallet is initializef first time;
|
// initialize transaction history once wallet is initializef first time;
|
||||||
if (!walletInitialized) {
|
if (!walletInitialized) {
|
||||||
|
|
Loading…
Reference in a new issue