mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Move reset logic to OsuGame
This commit is contained in:
parent
43a575484a
commit
dbdb25ccf7
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user