1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 01:02:56 +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:
Dean Herbert 2022-09-28 17:43:45 +09:00 committed by GitHub
commit baa9e0441f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,7 @@ namespace osu.Game.Tests.Visual.UserInterface
{ {
base.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) if (progressingNotifications.Count(n => n.State == ProgressNotificationState.Active) < 3)
{ {

View File

@ -156,6 +156,7 @@ namespace osu.Game.Updater
switch (State) switch (State)
{ {
case ProgressNotificationState.Cancelled: case ProgressNotificationState.Cancelled:
case ProgressNotificationState.Completed:
base.Close(runFlingAnimation); base.Close(runFlingAnimation);
break; break;
} }