1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 18:27:26 +08:00

Only show warning once on given map

This commit is contained in:
Bartłomiej Dach 2020-10-20 00:59:30 +02:00
parent a164d330e5
commit 1fc22bdbff

View File

@ -324,7 +324,9 @@ namespace osu.Game.Screens.Play
TransformSequence<PlayerLoader> pushSequence;
if (epilepsyWarning != null)
// only show if the warning was created (i.e. the beatmap needs it)
// and this is not a restart of the map (the warning expires after first load).
if (epilepsyWarning?.IsAlive == true)
{
epilepsyWarning.State.Value = Visibility.Visible;