diff --git a/client/ui/qml/Pages2/PageSettingsLogging.qml b/client/ui/qml/Pages2/PageSettingsLogging.qml index 89cb41d9..240e8c8c 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)