Merge pull request #1990

0d24f64 invalidate wallet name after creation (xmrdsc)
This commit is contained in:
luigi1111 2019-03-01 02:40:18 -06:00
commit 287e379a24
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
4 changed files with 18 additions and 0 deletions

View file

@ -225,4 +225,10 @@ Rectangle {
wizardCreateDevice1.update(); wizardCreateDevice1.update();
console.log() 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){ function onPageCompleted(previousView){
if(previousView.viewName == "wizardHome"){ if(previousView.viewName == "wizardHome"){
// cleanup // cleanup
walletInput.reset();
seedInput.text = ""; seedInput.text = "";
addressLine.text = ""; addressLine.text = "";
spendKeyLine.text = ""; spendKeyLine.text = "";

View file

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