mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 01:53:00 +08:00
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 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
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 @@ namespace osu.Game.Updater
|
||||
switch (State)
|
||||
{
|
||||
case ProgressNotificationState.Cancelled:
|
||||
case ProgressNotificationState.Completed:
|
||||
base.Close(runFlingAnimation);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user