1
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:
Jacob Brydolf 2016-10-10 20:20:50 +02:00
parent 0e1f224f51
commit 1ca4fd24ef
No known key found for this signature in database
GPG Key ID: DE46246550D2F3C5

View File

@ -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);
}