diff options
Diffstat (limited to 'wizard/WizardController.qml')
| -rw-r--r-- | wizard/WizardController.qml | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index 1c4f96b5..7467fb3d 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -107,11 +107,6 @@ Rectangle { property bool walletOptionsDeviceIsRestore: false property string tmpWalletFilename: '' - // language settings, updated via sidebar - property string language_locale: 'en_US' - property string language_wallet: 'English' - property string language_language: 'English (US)' - // recovery made (restore wallet) property string walletRestoreMode: 'seed' // seed, keys, qr @@ -333,7 +328,7 @@ Rectangle { console.log("Creating temporary wallet", tmp_wallet_filename) var nettype = appWindow.persistentSettings.nettype; var kdfRounds = appWindow.persistentSettings.kdfRounds; - var wallet = walletManager.createWallet(tmp_wallet_filename, "", wizardController.language_wallet, nettype, kdfRounds) + var wallet = walletManager.createWallet(tmp_wallet_filename, "", persistentSettings.language_wallet, nettype, kdfRounds) wizardController.walletOptionsSeed = wallet.seed @@ -364,9 +359,6 @@ Rectangle { wizardController.m_wallet.setPassword(wizardController.walletOptionsPassword); // save to persistent settings - persistentSettings.language = wizardController.language_language - persistentSettings.locale = wizardController.language_locale - persistentSettings.account_name = wizardController.walletOptionsName persistentSettings.wallet_path = wizardController.m_wallet.path; persistentSettings.restore_height = (isNaN(walletOptionsRestoreHeight))? 0 : walletOptionsRestoreHeight @@ -404,7 +396,7 @@ Rectangle { if(wizardController.walletRestoreMode === 'seed') wallet = walletManager.recoveryWallet(tmp_wallet_filename, wizardController.walletOptionsSeed, wizardController.walletOptionsSeedOffset, nettype, restoreHeight, kdfRounds); else - wallet = walletManager.createWalletFromKeys(tmp_wallet_filename, wizardController.language_wallet, nettype, + wallet = walletManager.createWalletFromKeys(tmp_wallet_filename, persistentSettings.language_wallet, nettype, wizardController.walletOptionsRecoverAddress, wizardController.walletOptionsRecoverViewkey, wizardController.walletOptionsRecoverSpendkey, restoreHeight, kdfRounds) |
