diff --git a/main.qml b/main.qml index 6d9a3d70..64877252 100644 --- a/main.qml +++ b/main.qml @@ -202,15 +202,6 @@ ApplicationWindow { leftPanel.selectItem(page); } - function openWalletFromFile(){ - persistentSettings.restore_height = 0 - restoreHeight = 0; - persistentSettings.is_recovering = false - walletPassword = "" - fileDialog.folder = "file://" + moneroAccountsDir - fileDialog.open(); - } - function initialize() { appWindow.viewState = "normal"; console.log("initializing..") @@ -1225,42 +1216,6 @@ ApplicationWindow { } } - - //Open Wallet from file - FileDialog { - id: fileDialog - title: qsTr("Please choose a file") + translationManager.emptyString - folder: "file://" + moneroAccountsDir - nameFilters: [ "Wallet files (*.keys)"] - sidebarVisible: false - visible: 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) - passwordDialog.onAcceptedCallback = function() { - walletPassword = passwordDialog.password; - initialize(); - } - passwordDialog.onRejectedCallback = function() { - console.log("Canceled"); - wizard.wizardState = "wizardHome"; - rootItem.state = "wizard"; - } - passwordDialog.open(usefulName(walletPath())); - } - onRejected: { - console.log("Canceled") - rootItem.state = "wizard"; - } - - } - // Choose blockchain folder FileDialog { id: blockchainFileDialog