diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-02-29 17:39:39 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-02-29 17:39:39 +0300 |
| commit | 7d9306ca1a661da015c59a0a991e028aeec0ee44 (patch) | |
| tree | b536aade228025ea2458a2c7a7fb8ec6f8d36163 /wizard | |
| parent | 625041df1823f2ce98b53fa054bab47876717c15 (diff) | |
| download | monzero-gui-7d9306ca1a661da015c59a0a991e028aeec0ee44.tar.gz monzero-gui-7d9306ca1a661da015c59a0a991e028aeec0ee44.tar.xz monzero-gui-7d9306ca1a661da015c59a0a991e028aeec0ee44.zip | |
Qt wrapper for libwallet - in-progress
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardCreateWallet.qml | 9 | ||||
| -rw-r--r-- | wizard/WizardFinish.qml | 2 | ||||
| -rw-r--r-- | wizard/WizardPassword.qml | 6 | ||||
| -rw-r--r-- | wizard/WizardRecoveryWallet.qml | 4 |
4 files changed, 17 insertions, 4 deletions
diff --git a/wizard/WizardCreateWallet.qml b/wizard/WizardCreateWallet.qml index 91b7447e..ce573e86 100644 --- a/wizard/WizardCreateWallet.qml +++ b/wizard/WizardCreateWallet.qml @@ -46,13 +46,19 @@ Item { settingsObject['wallet_path'] = uiItem.walletPath + var new_wallet_filename = settingsObject.wallet_path + "/" + settingsObject.account_name; // moving wallet files to the new destination, if user changed it if (new_wallet_filename !== settingsObject.wallet_filename) { - walletManager.moveWallet(settingsObject.wallet_filename, new_wallet_filename); + // using previously saved wallet; + settingsObject.wallet.rename(new_wallet_filename); + //walletManager.moveWallet(settingsObject.wallet_filename, new_wallet_filename); } + + // saving wallet_filename; + settingsObject['wallet_filename'] = new_wallet_filename; } function createWallet(settingsObject) { @@ -66,6 +72,7 @@ Item { } else { print("wallet already created. we just stepping back"); } + settingsObject.wallet_filename = wallet_filename } diff --git a/wizard/WizardFinish.qml b/wizard/WizardFinish.qml index 62975d8c..311dfd62 100644 --- a/wizard/WizardFinish.qml +++ b/wizard/WizardFinish.qml @@ -40,7 +40,7 @@ Item { function buildSettingsString() { var str = "<br>" + qsTr("<b>Language:</b> ") + wizard.settings['language'] + "<br>" + qsTr("<b>Account name:</b> ") + wizard.settings['account_name'] + "<br>" - + qsTr("<b>Words:</b> ") + wizard.settings['words'] + "<br>" + + qsTr("<b>Words:</b> ") + wizard.settings['wallet'].seed + "<br>" + qsTr("<b>Wallet Path: </b>") + wizard.settings['wallet_path'] + "<br>" + qsTr("<b>Enable auto donation: </b>") + wizard.settings['auto_donations_enabled'] + "<br>" + qsTr("<b>Auto donation amount: </b>") + wizard.settings['auto_donations_amount'] + "<br>" diff --git a/wizard/WizardPassword.qml b/wizard/WizardPassword.qml index d3d033aa..1bcc6213 100644 --- a/wizard/WizardPassword.qml +++ b/wizard/WizardPassword.qml @@ -43,6 +43,10 @@ Item { onOpacityChanged: visible = opacity !== 0 + function saveSettings(settingsObject) { + settingsObject.wallet.setPassword(passwordItem.password) + } + function handlePassword() { // allow to forward step only if passwords match wizard.nextButton.enabled = passwordItem.password === retypePasswordItem.password @@ -54,8 +58,6 @@ Item { - - Row { id: dotsRow anchors.top: parent.top diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml index 9093c59a..572d776b 100644 --- a/wizard/WizardRecoveryWallet.qml +++ b/wizard/WizardRecoveryWallet.qml @@ -46,6 +46,10 @@ Item { settingsObject['wallet_path'] = uiItem.walletPath } + function recoveryWallet() { + + } + WizardManageWalletUI { id: uiItem accountNameText: qsTr("My account name") |
