From 398ac6f459b266a92d79f76e0ab3b38e96e140b5 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 10 Feb 2017 16:58:40 +0900 Subject: [PATCH] Add assert to ensure complete is only called once. --- osu.Game/Overlays/Notifications/ProgressNotification.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Overlays/Notifications/ProgressNotification.cs b/osu.Game/Overlays/Notifications/ProgressNotification.cs index a4cac41d33..4cb1557c32 100644 --- a/osu.Game/Overlays/Notifications/ProgressNotification.cs +++ b/osu.Game/Overlays/Notifications/ProgressNotification.cs @@ -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);