mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 11:56:32 +02:00
wizard: empty seed box on page load
This commit is contained in:
parent
776a591190
commit
e6fe9d3045
@ -43,6 +43,8 @@ Item {
|
||||
|
||||
function onPageOpened(settingsObject) {
|
||||
checkNextButton();
|
||||
// Empty seedText when restoring multiple times in one session
|
||||
uiItem.wordsTextItem.memoText = "";
|
||||
}
|
||||
|
||||
function checkNextButton() {
|
||||
@ -54,7 +56,8 @@ Item {
|
||||
settingsObject['account_name'] = uiItem.accountNameText
|
||||
settingsObject['words'] = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText)
|
||||
settingsObject['wallet_path'] = uiItem.walletPath
|
||||
settingsObject['restore_height'] = parseInt(uiItem.restoreHeight)
|
||||
var restoreHeight = parseInt(uiItem.restoreHeight);
|
||||
settingsObject['restore_height'] = isNaN(restoreHeight)? 0 : restoreHeight
|
||||
var walletFullPath = wizard.createWalletPath(uiItem.walletPath,uiItem.accountNameText);
|
||||
if(wizard.walletExists(walletFullPath)){
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user