mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:04:06 +08:00
Fix dialog overlay hiding early-pushed dialog on initial PopOut
call
This commit is contained in:
parent
c59784c49f
commit
b96faedbe6
@ -98,7 +98,8 @@ namespace osu.Game.Overlays
|
|||||||
base.PopOut();
|
base.PopOut();
|
||||||
lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF, 100, Easing.InCubic);
|
lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF, 100, Easing.InCubic);
|
||||||
|
|
||||||
if (CurrentDialog?.State.Value == Visibility.Visible)
|
// PopOut gets called initially, but we only want to hide dialog when we have been loaded and are present.
|
||||||
|
if (IsLoaded && CurrentDialog?.State.Value == Visibility.Visible)
|
||||||
CurrentDialog.Hide();
|
CurrentDialog.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user