mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-03 17:39:54 +00:00
wizard: fix clearing of restore wallet fields
This commit is contained in:
parent
d2c47606ca
commit
7b0bdb1750
2 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ Rectangle {
|
||||||
id: wizardRestoreWallet1
|
id: wizardRestoreWallet1
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
property string viewName: "wizardCreateWallet1"
|
property string viewName: "wizardRestoreWallet1"
|
||||||
|
|
||||||
function verify() {
|
function verify() {
|
||||||
if (restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length !== 10) {
|
if (restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length !== 10) {
|
||||||
|
@ -305,7 +305,7 @@ Rectangle {
|
||||||
function onPageCompleted(previousView){
|
function onPageCompleted(previousView){
|
||||||
if(previousView.viewName == "wizardHome"){
|
if(previousView.viewName == "wizardHome"){
|
||||||
// cleanup
|
// cleanup
|
||||||
walletInput.reset();
|
wizardWalletInput.reset();
|
||||||
seedInput.text = "";
|
seedInput.text = "";
|
||||||
addressLine.text = "";
|
addressLine.text = "";
|
||||||
spendKeyLine.text = "";
|
spendKeyLine.text = "";
|
||||||
|
|
|
@ -55,6 +55,8 @@ GridLayout {
|
||||||
function reset() {
|
function reset() {
|
||||||
walletName.error = !walletName.verify();
|
walletName.error = !walletName.verify();
|
||||||
walletLocation.error = walletLocation.text === "";
|
walletLocation.error = walletLocation.text === "";
|
||||||
|
walletLocation.text = moneroAccountsDir + "/";
|
||||||
|
walletName.text = defaultAccountName;
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.LineEdit {
|
MoneroComponents.LineEdit {
|
||||||
|
|
Loading…
Reference in a new issue