diff --git a/osu.Game/Screens/Select/PlaySongSelect.cs b/osu.Game/Screens/Select/PlaySongSelect.cs index f483aa00f7..fb7ed3809f 100644 --- a/osu.Game/Screens/Select/PlaySongSelect.cs +++ b/osu.Game/Screens/Select/PlaySongSelect.cs @@ -4,6 +4,7 @@ using OpenTK.Input; using osu.Framework.Allocation; using osu.Framework.Graphics; +using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Primitives; using osu.Framework.Screens; using osu.Game.Beatmaps; @@ -65,6 +66,17 @@ namespace osu.Game.Screens.Select base.OnResuming(last); } + protected override bool OnExiting(Screen next) + { + if (modSelect.State == Visibility.Visible) + { + modSelect.Hide(); + return true; + } + + return base.OnExiting(next); + } + protected override void OnSelected() { if (player != null) return;