mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
keep restoring state until first refresh is finished
This commit is contained in:
parent
d22e02ac2a
commit
6aa5ced4f7
1 changed files with 12 additions and 8 deletions
14
main.qml
14
main.qml
|
@ -246,9 +246,18 @@ ApplicationWindow {
|
||||||
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
||||||
|
|
||||||
// Store wallet after every refresh.
|
// Store wallet after every refresh.
|
||||||
|
if (currentWallet.blockChainHeight() > 1){
|
||||||
|
|
||||||
//TODO: Doesn't need path after creation. Change libwalletqt
|
//TODO: Doesn't need path after creation. Change libwalletqt
|
||||||
currentWallet.store("")
|
currentWallet.store("")
|
||||||
console.log("Saving wallet");
|
console.log("Saving wallet");
|
||||||
|
|
||||||
|
// recovering from seed is finished after first refresh
|
||||||
|
if(persistentSettings.is_recovering) {
|
||||||
|
persistentSettings.is_recovering = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
isNewWallet = false
|
isNewWallet = false
|
||||||
|
|
||||||
// initialize transaction history once wallet is initializef first time;
|
// initialize transaction history once wallet is initializef first time;
|
||||||
|
@ -257,11 +266,6 @@ ApplicationWindow {
|
||||||
walletInitialized = true
|
walletInitialized = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// recovering from seed is finished after first refresh
|
|
||||||
if(persistentSettings.is_recovering) {
|
|
||||||
persistentSettings.is_recovering = false
|
|
||||||
}
|
|
||||||
|
|
||||||
leftPanel.networkStatus.connected = currentWallet.connected
|
leftPanel.networkStatus.connected = currentWallet.connected
|
||||||
|
|
||||||
onWalletUpdate();
|
onWalletUpdate();
|
||||||
|
|
Loading…
Reference in a new issue