1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-23 05:13:21 +08:00

Remove ``IsPresent`` usages

This commit is contained in:
mk56-spn 2023-02-04 16:52:30 +01:00
parent de37a0a000
commit 38cc47d64e

View File

@ -142,8 +142,6 @@ namespace osu.Game.Screens.Select
} }
} }
public override bool IsPresent => base.IsPresent || DisplayedContent == null; // Visibility is updated in the LoadComponentAsync callback
private Container? loadingInfo; private Container? loadingInfo;
private void updateDisplay() private void updateDisplay()
@ -316,7 +314,7 @@ namespace osu.Game.Screens.Select
starRatingDisplay.Current.Value = s.NewValue ?? default; starRatingDisplay.Current.Value = s.NewValue ?? default;
// Don't roll the counter on initial display (but still allow it to roll on applying mods etc.) // Don't roll the counter on initial display (but still allow it to roll on applying mods etc.)
if (!starRatingDisplay.IsPresent) if (starRatingDisplay.Alpha > 0)
starRatingDisplay.FinishTransforms(true); starRatingDisplay.FinishTransforms(true);
starRatingDisplay.FadeIn(transition_duration); starRatingDisplay.FadeIn(transition_duration);