diff options
| author | plowsof <plowsof@protonmail.com> | 2022-12-23 08:30:03 +0000 |
|---|---|---|
| committer | plowsof <plowsof@protonmail.com> | 2022-12-28 18:46:22 +0000 |
| commit | a01dc06a54c5f30bb2bf49b0e28d8853c95df7af (patch) | |
| tree | 2871ee5489d496a749fbe14881f137c9511455c6 /wizard | |
| parent | 48393db2c75bd306e7d7f5cd2c226880a5eb0386 (diff) | |
| download | monzero-gui-a01dc06a54c5f30bb2bf49b0e28d8853c95df7af.tar.gz monzero-gui-a01dc06a54c5f30bb2bf49b0e28d8853c95df7af.tar.xz monzero-gui-a01dc06a54c5f30bb2bf49b0e28d8853c95df7af.zip | |
open-wallet: set network type when using file browser
Co-authored-by: selsta <selsta@users.noreply.github.com>
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardController.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index be4e5334..593f9c84 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -308,7 +308,9 @@ Rectangle { sidebarVisible: false onAccepted: { - wizardController.openWalletFile(fileDialog.fileUrl); + var keysPath = walletManager.urlToLocalPath(fileDialog.fileUrl) + persistentSettings.nettype = oshelper.getNetworkTypeFromFile(keysPath); + wizardController.openWalletFile(keysPath); } onRejected: { console.log("Canceled") |
