1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 00:20:49 +08:00

Allow exporting logs on iOS

This commit is contained in:
Salman Alshamrani
2025-08-08 09:57:42 +03:00
Unverified
parent 38ea95fe8a
commit 385fc683a7
@@ -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,