mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix storyboard potentially being loaded many times
This commit is contained in:
@ -349,10 +349,9 @@ namespace osu.Game.Screens.Play
|
||||
.Delay(250)
|
||||
.FadeIn(250);
|
||||
|
||||
ShowStoryboard.ValueChanged += s =>
|
||||
ShowStoryboard.ValueChanged += enabled =>
|
||||
{
|
||||
if (s.NewValue && storyboard == null)
|
||||
initializeStoryboard(true);
|
||||
if (enabled.NewValue) initializeStoryboard(true);
|
||||
};
|
||||
|
||||
Background.EnableUserDim.Value = true;
|
||||
@ -427,7 +426,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private void initializeStoryboard(bool asyncLoad)
|
||||
{
|
||||
if (StoryboardContainer == null)
|
||||
if (StoryboardContainer == null || storyboard != null)
|
||||
return;
|
||||
|
||||
var beatmap = Beatmap.Value;
|
||||
|
Reference in New Issue
Block a user