wizard: warn user if wallet exists in path

This commit is contained in:
Jacob Brydolf
2016-10-30 18:07:56 +01:00
parent e09ccd3c9a
commit d637b5883e
3 changed files with 33 additions and 13 deletions

View File

@@ -55,6 +55,10 @@ Item {
settingsObject['words'] = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText)
settingsObject['wallet_path'] = uiItem.walletPath
settingsObject['restore_height'] = parseInt(uiItem.restoreHeight)
var walletFullPath = wizard.createWalletPath(uiItem.walletPath,uiItem.accountNameText);
if(wizard.walletExists(walletFullPath)){
return false
}
return recoveryWallet(settingsObject)
}