Move all the "inherit previous AllowTrackAdjustments" logic into OsuScreen

This commit is contained in:
AbstractQbit
2021-09-15 21:25:39 +03:00
parent 931e873a7e
commit 318f0941ca
8 changed files with 13 additions and 11 deletions

View File

@ -1075,10 +1075,7 @@ namespace osu.Game
OverlayActivationMode.BindTo(newOsuScreen.OverlayActivationMode);
API.Activity.BindTo(newOsuScreen.Activity);
if (newOsuScreen.AllowTrackAdjustments.HasValue)
MusicController.AllowTrackAdjustments = newOsuScreen.AllowTrackAdjustments.Value;
else
newOsuScreen.AllowTrackAdjustments = MusicController.AllowTrackAdjustments;
MusicController.AllowTrackAdjustments = newOsuScreen.AllowTrackAdjustments;
if (newOsuScreen.HideOverlaysOnEnter)
CloseAllOverlays();