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:
parent
a164d330e5
commit
1fc22bdbff
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user