aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorplowsof <plowsof@protonmail.com>2022-12-23 08:30:03 +0000
committerplowsof <plowsof@protonmail.com>2022-12-28 18:46:22 +0000
commita01dc06a54c5f30bb2bf49b0e28d8853c95df7af (patch)
tree2871ee5489d496a749fbe14881f137c9511455c6 /wizard
parent48393db2c75bd306e7d7f5cd2c226880a5eb0386 (diff)
downloadmonzero-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.qml4
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")