From 63d7c5a5a3a4c8945cee57d663be920edd615964 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 23 Mar 2017 19:35:46 +0900 Subject: [PATCH] Pressing back while mod select is visible should close mod select before exiting. --- osu.Game/Screens/Select/PlaySongSelect.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;