main: accountsDir runtime configuration support

This commit is contained in:
xiphon
2020-07-28 17:42:59 +00:00
parent c137a6ea36
commit f5c5df7b67
8 changed files with 17 additions and 16 deletions

View File

@@ -1692,7 +1692,7 @@ Rectangle {
informationPopup.open();
}
Component.onCompleted: {
var _folder = 'file://' + moneroAccountsDir;
var _folder = 'file://' + appWindow.accountsDir;
try {
_folder = 'file://' + desktopFolder;
}

View File

@@ -621,7 +621,7 @@ Rectangle {
FileDialog {
id: signTxDialog
title: qsTr("Please choose a file") + translationManager.emptyString
folder: "file://" +moneroAccountsDir
folder: "file://" + appWindow.accountsDir
nameFilters: [ "Unsigned transfers (*)"]
onAccepted: {
@@ -682,7 +682,7 @@ Rectangle {
FileDialog {
id: submitTxDialog
title: qsTr("Please choose a file") + translationManager.emptyString
folder: "file://" +moneroAccountsDir
folder: "file://" + appWindow.accountsDir
nameFilters: [ "signed transfers (*)"]
onAccepted: {

View File

@@ -135,7 +135,7 @@ Rectangle {
Layout.fillWidth: true
color: MoneroComponents.Style.dimmedFontColor
font.pixelSize: 14
property string walletPath: (isIOS ? moneroAccountsDir : "") + persistentSettings.wallet_path
property string walletPath: (isIOS ? appWindow.accountsDir : "") + persistentSettings.wallet_path
text: "\
<style type='text/css'>\
a {cursor:pointer;text-decoration: none; color: #FF6C3C}\