From a01dc06a54c5f30bb2bf49b0e28d8853c95df7af Mon Sep 17 00:00:00 2001 From: plowsof Date: Fri, 23 Dec 2022 08:30:03 +0000 Subject: open-wallet: set network type when using file browser Co-authored-by: selsta --- wizard/WizardController.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wizard') 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") -- cgit v1.2.3