1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 02:13:39 +08:00

Invert conditional to read a bit better

This commit is contained in:
Dean Herbert
2025-10-07 18:07:58 +09:00
Unverified
parent dbd48bc3a1
commit 64fba9470d
+3 -3
View File
@@ -325,10 +325,10 @@ namespace osu.Game.Screens.SelectV2
Current = Mods,
RequestDeselectAllMods = () =>
{
if (modSelectOverlay.State.Value == Visibility.Hidden)
Mods.Value = Array.Empty<Mod>();
else
if (modSelectOverlay.State.Value == Visibility.Visible)
modSelectOverlay.DeselectAll();
else
Mods.Value = Array.Empty<Mod>();
}
},
new FooterButtonRandom