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 @@ 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)
{

View File

@ -156,6 +156,7 @@ public override void Close(bool runFlingAnimation)
switch (State)
{
case ProgressNotificationState.Cancelled:
case ProgressNotificationState.Completed:
base.Close(runFlingAnimation);
break;
}