mirror of
https://github.com/ppy/osu
synced 2025-02-09 06:36:56 +00:00
Update new usages of Remove
/ RemoveInternal
This commit is contained in:
parent
c9dec473d3
commit
7eaa4c5ccd
@ -126,13 +126,13 @@ namespace osu.Game.Overlays
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user