mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Centralise TrackManager.AddItem logic to avoid duplicate adds
This commit is contained in:
@ -72,8 +72,6 @@ namespace osu.Game.Screens.Menu
|
||||
menuVoice = config.GetBindable<bool>(OsuSetting.MenuVoice);
|
||||
menuMusic = config.GetBindable<bool>(OsuSetting.MenuMusic);
|
||||
|
||||
var trackManager = audio.Track;
|
||||
|
||||
BeatmapSetInfo setInfo = null;
|
||||
|
||||
if (!menuMusic)
|
||||
@ -106,7 +104,6 @@ namespace osu.Game.Screens.Menu
|
||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(setInfo.Beatmaps[0]);
|
||||
|
||||
track = Beatmap.Value.Track;
|
||||
trackManager.AddItem(track);
|
||||
|
||||
welcome = audio.Sample.Get(@"welcome");
|
||||
seeya = audio.Sample.Get(@"seeya");
|
||||
|
Reference in New Issue
Block a user