From 385fc683a792715bfcbbdf7306259a928da7c277 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Fri, 8 Aug 2025 09:57:42 +0300 Subject: [PATCH] Allow exporting logs on iOS --- .../Overlays/Settings/Sections/General/UpdateSettings.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs b/osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs index f0428a4c92..4980aac585 100644 --- a/osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs +++ b/osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs @@ -53,6 +53,7 @@ namespace osu.Game.Overlays.Settings.Sections.General config.BindWith(OsuSetting.ReleaseStream, configReleaseStream); bool isDesktop = RuntimeInfo.IsDesktop; + bool supportsExport = RuntimeInfo.OS != RuntimeInfo.Platform.Android; bool canCheckUpdates = updateManager?.CanCheckForUpdate == true; if (canCheckUpdates) @@ -95,14 +96,20 @@ namespace osu.Game.Overlays.Settings.Sections.General Keywords = new[] { @"logs", @"files", @"access", "directory" }, Action = () => storage.PresentExternally(), }); + } + if (supportsExport) + { Add(new SettingsButton { Text = GeneralSettingsStrings.ExportLogs, Keywords = new[] { @"bug", "report", "logs", "files" }, Action = () => Task.Run(exportLogs), }); + } + if (isDesktop) + { Add(new SettingsButton { Text = GeneralSettingsStrings.ChangeFolderLocation,