invalidate wallet name after creation

This commit is contained in:
dsc 2019-03-01 09:09:02 +01:00
parent 07df0f41bf
commit 0d24f642c3
No known key found for this signature in database
GPG key ID: 7BBC83D7A8810AAB
4 changed files with 18 additions and 0 deletions

View file

@ -184,4 +184,10 @@ Rectangle {
wizardCreateDevice1.update();
console.log()
}
function onPageCompleted(previousView){
if(previousView.viewName == "wizardHome"){
walletInput.reset();
}
}
}

View file

@ -144,4 +144,10 @@ Rectangle {
}
}
}
function onPageCompleted(previousView){
if(previousView.viewName == "wizardHome"){
walletInput.reset();
}
}
}

View file

@ -305,6 +305,7 @@ Rectangle {
function onPageCompleted(previousView){
if(previousView.viewName == "wizardHome"){
// cleanup
walletInput.reset();
seedInput.text = "";
addressLine.text = "";
spendKeyLine.text = "";

View file

@ -52,6 +52,11 @@ GridLayout {
return false;
}
function reset() {
walletName.error = !walletName.verify();
walletLocation.error = walletLocation.text === "";
}
MoneroComponents.LineEdit {
id: walletName
Layout.fillWidth: true