diff options
| author | selsta <selsta@sent.at> | 2019-02-26 23:53:22 +0100 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-02-27 00:08:30 +0100 |
| commit | 87e93e1b08a4f2e27d9b294efa197e5fe5f2f296 (patch) | |
| tree | 668e08ad2e425b7731b5215ed18f4bc32a816176 /pages | |
| parent | 42103432b79bb52b254531a77d93f26007e1cc42 (diff) | |
| download | monzero-gui-87e93e1b08a4f2e27d9b294efa197e5fe5f2f296.tar.gz monzero-gui-87e93e1b08a4f2e27d9b294efa197e5fe5f2f296.tar.xz monzero-gui-87e93e1b08a4f2e27d9b294efa197e5fe5f2f296.zip | |
Settings: fix create view only wallet button
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/settings/SettingsWallet.qml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index 29a1b5ff..b362088f 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -177,7 +177,18 @@ Rectangle { small: true text: qsTr("Create wallet") + translationManager.emptyString onClicked: { - wizard.openCreateViewOnlyWalletPage(); + var newPath = currentWallet.path + "_viewonly"; + if (currentWallet.createViewOnly(newPath, appWindow.walletPassword)) { + console.log("view only wallet created in " + newPath); + informationPopup.title = qsTr("Success") + translationManager.emptyString; + informationPopup.text = qsTr('The view only wallet has been created with the same password as the current wallet. You can open it by closing this current wallet, clicking the "Open wallet from file" option, and selecting the view wallet in: \n%1\nYou can change the password in the wallet settings.').arg(newPath); + informationPopup.open() + informationPopup.onCloseCallback = null + } else { + informationPopup.title = qsTr("Error") + translationManager.emptyString; + informationPopup.text = currentWallet.errorString; + informationPopup.open() + } } width: 135 * scaleRatio } |
