mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 17:43:21 +08:00
Flush toast tray on entering a no-notification section
This commit is contained in:
parent
c61f5403ab
commit
461ba64bfa
@ -115,7 +115,10 @@ namespace osu.Game.Overlays
|
|||||||
// we want a slight delay before toggling notifications on to avoid the user becoming overwhelmed.
|
// 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);
|
notificationsEnabler = Scheduler.AddDelayed(() => processingPosts = true, State.Value == Visibility.Visible ? 0 : 250);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
processingPosts = false;
|
processingPosts = false;
|
||||||
|
toastTray.FlushAllToasts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
Loading…
Reference in New Issue
Block a user