mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-19 16:13:55 +02:00
Save wallet after every refresh
This commit is contained in:
parent
05046a5f21
commit
10d3d3f577
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 New Issue
Block a user