Update usages of OpenInNativeExplorer to use ShowFileInNativeExplorer

Also updates WrappedStorage to override ShowFileInNativeExplorer.
This commit is contained in:
Susko3
2021-10-17 12:17:38 +02:00
parent e925c416cb
commit 25f172fae8
4 changed files with 10 additions and 4 deletions

View File

@ -913,13 +913,15 @@ namespace osu.Game
}
else if (recentLogCount == short_term_display_limit)
{
var logFile = $@"{entry.Target.ToString().ToLowerInvariant()}.log";
Schedule(() => Notifications.Post(new SimpleNotification
{
Icon = FontAwesome.Solid.EllipsisH,
Text = "Subsequent messages have been logged. Click to view log files.",
Activated = () =>
{
Storage.GetStorageForDirectory("logs").OpenInNativeExplorer();
Storage.GetStorageForDirectory(@"logs").ShowFileInNativeExplorer(logFile);
return true;
}
}));