forked from Public/monero-gui
Merge pull request #194
f8fabbe reset restore height counter when switching wallets (Jaquee)
This commit is contained in:
2
main.qml
2
main.qml
@@ -135,6 +135,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();
|
||||||
@@ -180,6 +181,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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user