mirror of
https://github.com/ppy/osu.git
synced 2026-05-17 12:02:58 +08:00
Fix opening log files from notification not presenting the correct file
This commit is contained in:
+2
-2
@@ -1190,7 +1190,7 @@ namespace osu.Game
|
||||
}
|
||||
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
|
||||
{
|
||||
@@ -1198,7 +1198,7 @@ namespace osu.Game
|
||||
Text = NotificationsStrings.SubsequentMessagesLogged,
|
||||
Activated = () =>
|
||||
{
|
||||
Storage.GetStorageForDirectory(@"logs").PresentFileExternally(logFile);
|
||||
Logger.Storage.PresentFileExternally(logFile);
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user