Skip to content

Commit

Permalink
Fix opening log files from notification not presenting the correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
Susko3 committed Dec 18, 2023
1 parent 8e8d9b2 commit cc800a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/OsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,15 +1190,15 @@ private void forwardGeneralLogsToNotifications()
}
else if (recentLogCount == short_term_display_limit)
{
string logFile = $@"{entry.Target.Value.ToString().ToLowerInvariant()}.log";
string logFile = Logger.GetLogger(entry.Target.Value).Filename;
Schedule(() => Notifications.Post(new SimpleNotification
{
Icon = FontAwesome.Solid.EllipsisH,
Text = NotificationsStrings.SubsequentMessagesLogged,
Activated = () =>
{
Storage.GetStorageForDirectory(@"logs").PresentFileExternally(logFile);
Logger.Storage.PresentFileExternally(logFile);
return true;
}
}));
Expand Down

0 comments on commit cc800a1

Please sign in to comment.