Merge pull request #8178 from peppy/tournamet-fix-video-looping

Fix video looping not propagating when set too early in initialisation
This commit is contained in:
Dan Balasescu 2020-03-09 09:13:21 +09:00 committed by GitHub
commit 9dbff39fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ namespace osu.Game.Tournament.Components
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit, FillMode = FillMode.Fit,
Clock = new FramedClock(manualClock = new ManualClock()) Clock = new FramedClock(manualClock = new ManualClock()),
Loop = loop,
}; };
} }
else if (drawFallbackGradient) else if (drawFallbackGradient)
@ -51,10 +52,13 @@ namespace osu.Game.Tournament.Components
} }
} }
private bool loop;
public bool Loop public bool Loop
{ {
set set
{ {
loop = value;
if (video != null) if (video != null)
video.Loop = value; video.Loop = value;
} }