mirror of https://github.com/ppy/osu
Merge pull request #20428 from frenzibyte/fix-update-progress-notification
Fix update progress notification not closing on completion
This commit is contained in:
commit
baa9e0441f
|
@ -504,7 +504,7 @@ protected override void Update()
|
|||
{
|
||||
base.Update();
|
||||
|
||||
progressingNotifications.RemoveAll(n => n.State == ProgressNotificationState.Completed);
|
||||
progressingNotifications.RemoveAll(n => n.State == ProgressNotificationState.Completed && n.WasClosed);
|
||||
|
||||
if (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
|
||||
{
|
||||
|
|
|
@ -156,6 +156,7 @@ public override void Close(bool runFlingAnimation)
|
|||
switch (State)
|
||||
{
|
||||
case ProgressNotificationState.Cancelled:
|
||||
case ProgressNotificationState.Completed:
|
||||
base.Close(runFlingAnimation);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue