From 32e9db9273bc25194c87fcbc44b3b601a481b9e7 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Thu, 10 Nov 2016 11:09:20 +0100 Subject: [PATCH] Hide Options and MusicController when switching to Player Just something I noticed while playing around with the MusicController, as it can't be hidden without the corresponding toolbar button (yet) and it stays on screen when playing a beatmap. This PR just hides the Options and MusicController overlays on switching to the Player GameMode and so prevents the user from causing exceptions due to seeking in the Player mode. --- osu.Game/OsuGame.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index 1323e65757..2fc3250098 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -162,6 +162,8 @@ namespace osu.Game { Toolbar.State = Visibility.Hidden; Chat.State = Visibility.Hidden; + MusicController.State = Visibility.Hidden; + Options.State = Visibility.Hidden; } else {