1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:57:38 +08:00

Fix ModSelectOverlay not hiding without a footer

This commit is contained in:
Salman Ahmed 2024-07-11 14:56:17 +03:00
parent 337f05f9a4
commit 669e945fc3

View File

@ -604,7 +604,13 @@ namespace osu.Game.Overlays.Mods
return base.OnPressed(e);
void hideOverlay() => footer?.BackButton.TriggerClick();
void hideOverlay()
{
if (footer != null)
footer.BackButton.TriggerClick();
else
Hide();
}
}
/// <inheritdoc cref="IKeyBindingHandler{PlatformAction}"/>