Fix notification count including fading (already closed) notifications

This commit is contained in:
Dean Herbert
2017-08-23 12:47:20 +09:00
parent a2407948ed
commit b2db550cb4
3 changed files with 6 additions and 9 deletions

View File

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