mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Add assert to ensure complete is only called once.
This commit is contained in:
parent
dd8ec70bd5
commit
398ac6f459
@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
public void Complete()
|
||||
{
|
||||
Debug.Assert(state != ProgressNotificationState.Completed);
|
||||
|
||||
state = ProgressNotificationState.Completed;
|
||||
|
||||
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, EasingTypes.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user