1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 07:09:53 +08:00

Move reset logic to OsuGame

This commit is contained in:
Dean Herbert
2020-10-08 18:29:19 +09:00
Unverified
parent 43a575484a
commit dbdb25ccf7
2 changed files with 3 additions and 4 deletions
+3
View File
@@ -957,6 +957,9 @@ namespace osu.Game
break;
}
// reset on screen change for sanity.
LocalUserPlaying.Value = false;
if (current is IOsuScreen currentOsuScreen)
OverlayActivationMode.UnbindFrom(currentOsuScreen.OverlayActivationMode);
-4
View File
@@ -666,8 +666,6 @@ namespace osu.Game.Screens.Play
{
screenSuspension?.Expire();
LocalUserPlaying.Value = false;
fadeOut();
base.OnSuspending(next);
}
@@ -697,8 +695,6 @@ namespace osu.Game.Screens.Play
musicController.ResetTrackAdjustments();
LocalUserPlaying.Value = false;
fadeOut();
return base.OnExiting(next);
}