open-wallet: set network type when using file browser

Co-authored-by: selsta <selsta@users.noreply.github.com>
This commit is contained in:
plowsof
2022-12-23 08:30:03 +00:00
parent 48393db2c7
commit a01dc06a54
4 changed files with 42 additions and 21 deletions

View File

@@ -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")