Skip to content

Commit

Permalink
Flush toast tray on entering a no-notification section
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 27, 2022
1 parent c61f540 commit 461ba64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Overlays/NotificationOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ private void updateProcessingMode()
// 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 : 250);
else
{
processingPosts = false;
toastTray.FlushAllToasts();
}
}

protected override void LoadComplete()
Expand Down

0 comments on commit 461ba64

Please sign in to comment.