From a72a76d3e65609ecf7c740c1a6bbd36b86006721 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Thu, 2 Nov 2017 07:52:38 +0100 Subject: [PATCH] IOS open from file workaround --- main.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.qml b/main.qml index 5c430e5f..809c0311 100644 --- a/main.qml +++ b/main.qml @@ -1017,9 +1017,17 @@ ApplicationWindow { title: "Please choose a file" folder: "file://" +moneroAccountsDir nameFilters: [ "Wallet files (*.keys)"] + sidebarVisible: false + onAccepted: { persistentSettings.wallet_path = walletManager.urlToLocalPath(fileDialog.fileUrl) + if(isIOS) + persistentSettings.wallet_path = persistentSettings.wallet_path.replace(moneroAccountsDir,"") + console.log("ÖPPPPNA") + console.log(moneroAccountsDir) + console.log(fileDialog.fileUrl) + console.log(persistentSettings.wallet_path) initialize(); } onRejected: {