mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Merge pull request #194
f8fabbe
reset restore height counter when switching wallets (Jaquee)
This commit is contained in:
commit
6e7a924bb8
1 changed files with 2 additions and 0 deletions
2
main.qml
2
main.qml
|
@ -135,6 +135,7 @@ ApplicationWindow {
|
|||
|
||||
function openWalletFromFile(){
|
||||
persistentSettings.restore_height = 0
|
||||
restoreHeight = 0;
|
||||
persistentSettings.is_recovering = false
|
||||
appWindow.password = ""
|
||||
fileDialog.open();
|
||||
|
@ -180,6 +181,7 @@ ApplicationWindow {
|
|||
console.log("using wizard wallet")
|
||||
//Set restoreHeight
|
||||
if(persistentSettings.restore_height > 0){
|
||||
// We store restore height in own variable for performance reasons.
|
||||
restoreHeight = persistentSettings.restore_height
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue