Skip to content

Commit

Permalink
Merge pull request #20502 from peppy/forward-toasts-on-gameplay
Browse files Browse the repository at this point in the history
Flush toast tray on entering gameplay
  • Loading branch information
smoogipoo authored Sep 27, 2022
2 parents 5a28174 + 461ba64 commit ec30050
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game/Overlays/NotificationOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ private void updateProcessingMode()

if (enabled)
// we want a slight delay before toggling notifications on to avoid the user becoming overwhelmed.
notificationsEnabler = Scheduler.AddDelayed(() => processingPosts = true, State.Value == Visibility.Visible ? 0 : 100);
notificationsEnabler = Scheduler.AddDelayed(() => processingPosts = true, State.Value == Visibility.Visible ? 0 : 250);
else
{
processingPosts = false;
toastTray.FlushAllToasts();
}
}

protected override void LoadComplete()
Expand Down

0 comments on commit ec30050

Please sign in to comment.