mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 10:18:14 +00:00
fix: removed service logs section for mobile platforms (#1810)
This commit is contained in:
@@ -167,7 +167,8 @@ PageType {
|
||||
|
||||
// Show service logs only if this is NOT a macOS build with
|
||||
// Network-Extension (IsMacOsNeBuild is injected from C++ at run-time)
|
||||
property list<QtObject> logTypes: IsMacOsNeBuild ? [
|
||||
// or if this is NOT a mobile build
|
||||
property list<QtObject> logTypes: (IsMacOsNeBuild || GC.isMobile()) ? [
|
||||
clientLogs
|
||||
] : [
|
||||
clientLogs,
|
||||
@@ -214,15 +215,11 @@ PageType {
|
||||
}
|
||||
readonly property var exportLogsHandler: function() {
|
||||
var fileName = ""
|
||||
if (GC.isMobile()) {
|
||||
fileName = "AmneziaVPN-service.log"
|
||||
} else {
|
||||
fileName = SystemController.getFileName(qsTr("Save"),
|
||||
qsTr("Logs files (*.log)"),
|
||||
StandardPaths.standardLocations(StandardPaths.DocumentsLocation) + "/AmneziaVPN-service",
|
||||
true,
|
||||
".log")
|
||||
}
|
||||
fileName = SystemController.getFileName(qsTr("Save"),
|
||||
qsTr("Logs files (*.log)"),
|
||||
StandardPaths.standardLocations(StandardPaths.DocumentsLocation) + "/AmneziaVPN-service",
|
||||
true,
|
||||
".log")
|
||||
if (fileName !== "") {
|
||||
PageController.showBusyIndicator(true)
|
||||
SettingsController.exportServiceLogsFile(fileName)
|
||||
|
||||
Reference in New Issue
Block a user