main: remove unused openWalletFromFile and fileDialog code

This commit is contained in:
xiphon 2019-04-20 05:47:01 +00:00
parent 10926644bf
commit c721670098

View file

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