mirror of
https://github.com/monero-project/monero-gui
synced 2025-01-04 20:26:23 +01:00
Save wallet after every refresh
This commit is contained in:
parent
05046a5f21
commit
10d3d3f577
9
main.qml
9
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user