mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Fix CI issues and update comments.
This commit is contained in:
parent
caf8354f50
commit
33946f0458
@ -30,14 +30,14 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private LeasedBindable<WorkingBeatmap> beatmap;
|
||||
|
||||
public new Bindable<WorkingBeatmap> Beatmap { get => beatmap; }
|
||||
public new Bindable<WorkingBeatmap> Beatmap => beatmap;
|
||||
|
||||
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBlack();
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config, BeatmapManager beatmaps, Framework.Game game)
|
||||
{
|
||||
//we take a lease on the beatmap bindable to prevent music playback from changing / pausing music during intros, as it is causing weird interactions with certains intros
|
||||
// we take a lease on the beatmap bindable to prevent music playback from changing / pausing during intros, as it is causing weird interactions with certains intros.
|
||||
beatmap = base.Beatmap.BeginLease(false);
|
||||
|
||||
menuVoice = config.GetBindable<bool>(OsuSetting.MenuVoice);
|
||||
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Menu
|
||||
protected void LoadMenu()
|
||||
{
|
||||
DidLoadMenu = true;
|
||||
beatmap.Return(); //we return the lease to the beatmap bindable as we're pushing the main menu.
|
||||
beatmap.Return();
|
||||
|
||||
this.Push(mainMenu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user