mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-20 04:15:53 +01:00
one more variable fix
This commit is contained in:
parent
0e1f224f51
commit
1ca4fd24ef
@ -54,17 +54,18 @@ Item {
|
||||
settingsObject['account_name'] = uiItem.accountNameText
|
||||
settingsObject['words'] = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText)
|
||||
settingsObject['wallet_path'] = uiItem.walletPath
|
||||
settingsObject['restoreHeight'] = parseInt(uiItem.restoreHeight)
|
||||
settingsObject['restore_height'] = parseInt(uiItem.restoreHeight)
|
||||
return recoveryWallet(settingsObject)
|
||||
}
|
||||
|
||||
function recoveryWallet(settingsObject) {
|
||||
var testnet = appWindow.persistentSettings.testnet;
|
||||
var restoreHeight = settingsObject.restoreHeight;
|
||||
var restoreHeight = settingsObject.restore_height;
|
||||
var wallet = walletManager.recoveryWallet(oshelper.temporaryFilename(), settingsObject.words, testnet, restoreHeight);
|
||||
var success = wallet.status === Wallet.Status_Ok;
|
||||
if (success) {
|
||||
settingsObject['wallet'] = wallet;
|
||||
settingsObject['is_restoring'] = true;
|
||||
} else {
|
||||
walletManager.closeWallet(wallet);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user