From cfa0a49e59f9b08574a1cb29d02ca9a8eca2b11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Thu, 29 May 2025 10:38:42 +0200 Subject: [PATCH] Add precautionary assertion guarding against song select messing with logo while not current I considered having this just be a straight guard followed by an early-return, but if that guard ever actually gets hit, things are going to be severely broken all over, and un-breaking them at that point will be very annoying, so just going to cross fingers and hope this can be an assertion forevermore instead. --- osu.Game/Screens/SelectV2/SongSelect.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Screens/SelectV2/SongSelect.cs b/osu.Game/Screens/SelectV2/SongSelect.cs index 54ebc2b16e..cf18734cd6 100644 --- a/osu.Game/Screens/SelectV2/SongSelect.cs +++ b/osu.Game/Screens/SelectV2/SongSelect.cs @@ -278,6 +278,8 @@ namespace osu.Game.Screens.SelectV2 modSelectOverlay.State.BindValueChanged(v => { + Debug.Assert(this.IsCurrentScreen()); + logo?.ScaleTo(v.NewValue == Visibility.Visible ? 0f : logo_scale, 400, Easing.OutQuint) .FadeTo(v.NewValue == Visibility.Visible ? 0f : 1f, 200, Easing.OutQuint); });