fixed saving of configs for mobile platforms
This commit is contained in:
parent
4ae608ed93
commit
d93b5a7b5c
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ DrawerType {
|
||||||
onClosed: {
|
onClosed: {
|
||||||
configExtension = ".vpn"
|
configExtension = ".vpn"
|
||||||
configCaption = qsTr("Save AmneziaVPN config")
|
configCaption = qsTr("Save AmneziaVPN config")
|
||||||
configFileName = "amnezia_config.vpn"
|
configFileName = "amnezia_config"
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -74,7 +74,7 @@ DrawerType {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var fileName = ""
|
var fileName = ""
|
||||||
if (GC.isMobile()) {
|
if (GC.isMobile()) {
|
||||||
fileName = configFileName
|
fileName = configFileName + configExtension
|
||||||
} else {
|
} else {
|
||||||
fileName = SystemController.getFileName(configCaption,
|
fileName = SystemController.getFileName(configCaption,
|
||||||
qsTr("Config files (*" + configExtension + ")"),
|
qsTr("Config files (*" + configExtension + ")"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue