mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix notification count including fading (already closed) notifications
This commit is contained in:
@ -24,12 +24,9 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
private FlowContainer<Notification> notifications;
|
||||
|
||||
public int DisplayedCount => notifications.Count;
|
||||
public int DisplayedCount => notifications.Count(n => !n.WasClosed);
|
||||
|
||||
public void Add(Notification notification)
|
||||
{
|
||||
notifications.Add(notification);
|
||||
}
|
||||
public void Add(Notification notification) => notifications.Add(notification);
|
||||
|
||||
public IEnumerable<Type> AcceptTypes;
|
||||
|
||||
|
Reference in New Issue
Block a user