mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 04:20:26 +00:00
main: remove unused openWalletFromFile and fileDialog code
This commit is contained in:
parent
10926644bf
commit
c721670098
1 changed files with 0 additions and 45 deletions
45
main.qml
45
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
|
||||
|
|
Loading…
Reference in a new issue