mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
Android fileSave fixes
This commit is contained in:
@@ -13,6 +13,8 @@ import ContainerProps 1.0
|
||||
import "./"
|
||||
import "../Controls2"
|
||||
import "../Controls2/TextTypes"
|
||||
import "../Config"
|
||||
import "../Components"
|
||||
|
||||
DrawerType {
|
||||
id: root
|
||||
@@ -70,8 +72,8 @@ DrawerType {
|
||||
imageSource: "qrc:/images/controls/share-2.svg"
|
||||
|
||||
onClicked: {
|
||||
if (Qt.platform.os === "ios") {
|
||||
ExportController.saveFile("amnezia_config.vpn")
|
||||
if (GC.isMobile()) {
|
||||
ExportController.saveFile(configFileName)
|
||||
} else {
|
||||
fileDialog.open()
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ PageType {
|
||||
image: "qrc:/images/controls/save.svg"
|
||||
|
||||
onClicked: {
|
||||
if (Qt.platform.os === "ios") {
|
||||
if (GC.isMobile()) {
|
||||
SettingsController.exportLogsFile("AmneziaVPN.log")
|
||||
} else {
|
||||
fileDialog.open()
|
||||
|
||||
@@ -302,7 +302,7 @@ PageType {
|
||||
text: qsTr("Save site list")
|
||||
|
||||
clickedFunction: function() {
|
||||
if (Qt.platform.os === "ios") {
|
||||
if (GC.isMobile()) {
|
||||
ExportController.saveFile("amezia_tunnel.json")
|
||||
} else {
|
||||
saveFileDialog.open()
|
||||
|
||||
Reference in New Issue
Block a user