1
0
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:
Dean Herbert 2023-06-25 21:25:07 +09:00 committed by GitHub
parent a7202721ff
commit 95e8dd2e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!;