mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
invalidate wallet name after creation
This commit is contained in:
parent
07df0f41bf
commit
0d24f642c3
4 changed files with 18 additions and 0 deletions
|
@ -184,4 +184,10 @@ Rectangle {
|
|||
wizardCreateDevice1.update();
|
||||
console.log()
|
||||
}
|
||||
|
||||
function onPageCompleted(previousView){
|
||||
if(previousView.viewName == "wizardHome"){
|
||||
walletInput.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,4 +144,10 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onPageCompleted(previousView){
|
||||
if(previousView.viewName == "wizardHome"){
|
||||
walletInput.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -305,6 +305,7 @@ Rectangle {
|
|||
function onPageCompleted(previousView){
|
||||
if(previousView.viewName == "wizardHome"){
|
||||
// cleanup
|
||||
walletInput.reset();
|
||||
seedInput.text = "";
|
||||
addressLine.text = "";
|
||||
spendKeyLine.text = "";
|
||||
|
|
|
@ -52,6 +52,11 @@ GridLayout {
|
|||
return false;
|
||||
}
|
||||
|
||||
function reset() {
|
||||
walletName.error = !walletName.verify();
|
||||
walletLocation.error = walletLocation.text === "";
|
||||
}
|
||||
|
||||
MoneroComponents.LineEdit {
|
||||
id: walletName
|
||||
Layout.fillWidth: true
|
||||
|
|
Loading…
Reference in a new issue