mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-18 23:53:41 +02:00
reset restore height counter when switching wallets
This commit is contained in:
parent
c83336cc47
commit
f8fabbe4c5
2
main.qml
2
main.qml
@ -134,6 +134,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
function openWalletFromFile(){
|
function openWalletFromFile(){
|
||||||
persistentSettings.restore_height = 0
|
persistentSettings.restore_height = 0
|
||||||
|
restoreHeight = 0;
|
||||||
persistentSettings.is_recovering = false
|
persistentSettings.is_recovering = false
|
||||||
appWindow.password = ""
|
appWindow.password = ""
|
||||||
fileDialog.open();
|
fileDialog.open();
|
||||||
@ -179,6 +180,7 @@ ApplicationWindow {
|
|||||||
console.log("using wizard wallet")
|
console.log("using wizard wallet")
|
||||||
//Set restoreHeight
|
//Set restoreHeight
|
||||||
if(persistentSettings.restore_height > 0){
|
if(persistentSettings.restore_height > 0){
|
||||||
|
// We store restore height in own variable for performance reasons.
|
||||||
restoreHeight = persistentSettings.restore_height
|
restoreHeight = persistentSettings.restore_height
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user