Skip to content

Commit

Permalink
Update new usages of Remove / RemoveInternal
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 1, 2022
1 parent c9dec47 commit 7eaa4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Overlays/NotificationOverlayToastTray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ private void forwardNotification(Notification notification)
Debug.Assert(notification.Parent == toastFlow);

// Temporarily remove from flow so we can animate the position off to the right.
toastFlow.Remove(notification);
toastFlow.Remove(notification, false);
AddInternal(notification);

notification.MoveToOffset(new Vector2(400, 0), NotificationOverlay.TRANSITION_LENGTH, Easing.OutQuint);
notification.FadeOut(NotificationOverlay.TRANSITION_LENGTH, Easing.OutQuint).OnComplete(_ =>
{
RemoveInternal(notification);
RemoveInternal(notification, false);
ForwardNotificationToPermanentStore?.Invoke(notification);

notification.FadeIn(300, Easing.OutQuint);
Expand Down

0 comments on commit 7eaa4c5

Please sign in to comment.