Wizard: add qrcode scanner to recover page

This commit is contained in:
Jaquee
2017-08-06 17:29:43 +02:00
parent a3088b1eeb
commit b205acc51b
3 changed files with 52 additions and 2 deletions

View File

@@ -81,6 +81,12 @@ ColumnLayout {
var tmp_wallet_filename = oshelper.temporaryFilename()
console.log("Creating temporary wallet", tmp_wallet_filename)
// delete the temporary wallet object before creating new
if (typeof m_wallet !== 'undefined') {
walletManager.closeWallet()
console.log("deleting temporary wallet")
}
// From seed or keys
if(fromSeed)
var wallet = walletManager.recoveryWallet(tmp_wallet_filename, settingsObject.words, testnet, restoreHeight)