mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Don't attempt to access notifications before loaded
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
a7202721ff
commit
95e8dd2e8e
@ -35,7 +35,7 @@ namespace osu.Game.Overlays
|
|||||||
public const float TRANSITION_LENGTH = 600;
|
public const float TRANSITION_LENGTH = 600;
|
||||||
|
|
||||||
public IEnumerable<Notification> AllNotifications =>
|
public IEnumerable<Notification> AllNotifications =>
|
||||||
toastTray.Notifications.Concat(sections.SelectMany(s => s.Notifications));
|
IsLoaded ? toastTray.Notifications.Concat(sections.SelectMany(s => s.Notifications)) : Array.Empty<Notification>();
|
||||||
|
|
||||||
private FlowContainer<NotificationSection> sections = null!;
|
private FlowContainer<NotificationSection> sections = null!;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user