wizard: Reset password and account name fields on wizard restart

This commit is contained in:
Jaquee
2016-12-08 15:37:16 +01:00
parent 26abdee5c4
commit 6ca4e05167
4 changed files with 27 additions and 1 deletions

View File

@@ -41,6 +41,11 @@ Item {
onOpacityChanged: visible = opacity !== 0
function onWizardRestarted() {
// reset account name field
uiItem.accountNameText = defaultAccountName
}
function onPageOpened(settingsObject) {
checkNextButton();
// Empty seedText when restoring multiple times in one session
@@ -95,4 +100,8 @@ Item {
checkNextButton();
}
}
Component.onCompleted: {
parent.wizardRestarted.connect(onWizardRestarted)
}
}