From c907f5ca360b34720752ca006ebc5bc540e986ad Mon Sep 17 00:00:00 2001 From: MrMirDan <58086007+MrMirDan@users.noreply.github.com> Date: Mon, 25 Aug 2025 17:04:48 +0300 Subject: [PATCH] fix: removed service logs section for mobile platforms (#1810) --- client/ui/qml/Pages2/PageSettingsLogging.qml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/client/ui/qml/Pages2/PageSettingsLogging.qml b/client/ui/qml/Pages2/PageSettingsLogging.qml index 89cb41d95..240e8c8c5 100644 --- a/client/ui/qml/Pages2/PageSettingsLogging.qml +++ b/client/ui/qml/Pages2/PageSettingsLogging.qml @@ -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 logTypes: IsMacOsNeBuild ? [ + // or if this is NOT a mobile build + property list 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)