diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-07-21 13:56:17 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-07-21 13:56:17 +0300 |
| commit | e5d5a6082fdcacfd9f1de1b2144101e705f2d322 (patch) | |
| tree | 4df82794be575cb9da354943a532d3be2c2fcf53 /wizard/WizardCreateWallet.qml | |
| parent | ecf844120b62e688e0527316d8f1322bfea06fe0 (diff) | |
| download | monzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.tar.gz monzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.tar.xz monzero-gui-e5d5a6082fdcacfd9f1de1b2144101e705f2d322.zip | |
Wizard refactoring
Diffstat (limited to 'wizard/WizardCreateWallet.qml')
| -rw-r--r-- | wizard/WizardCreateWallet.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wizard/WizardCreateWallet.qml b/wizard/WizardCreateWallet.qml index 2181a359..771a13ec 100644 --- a/wizard/WizardCreateWallet.qml +++ b/wizard/WizardCreateWallet.qml @@ -42,6 +42,10 @@ Item { //! function called each time we display this page + function onPageOpened(settingsOblect) { + checkNextButton() + } + function onPageClosed(settingsObject) { settingsObject['account_name'] = uiItem.accountNameText settingsObject['words'] = uiItem.wordsTexttext @@ -49,6 +53,11 @@ Item { return true; } + function checkNextButton() { + var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" "); + wizard.nextButton.enabled = wordsArray.length === 25; + } + //! function called each time we hide this page // |
