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

Rename variable to better explain purpose

This commit is contained in:
Bartłomiej Dach 2021-05-17 18:54:17 +02:00
parent 7befcf74ff
commit d614a47614

View File

@ -177,19 +177,19 @@ namespace osu.Game.Overlays.News.Sidebar
}
}
private bool shouldUpdateAutosize = true;
private bool autoSizeTransitionApplied;
// Workaround to allow the dropdown to be opened immediately since FinishTransforms doesn't work for AutosizeDuration.
// Workaround to allow the dropdown to be opened immediately since FinishTransforms doesn't work for AutoSize{Duration,Easing}.
protected override void UpdateAfterAutoSize()
{
base.UpdateAfterAutoSize();
if (shouldUpdateAutosize)
if (!autoSizeTransitionApplied)
{
AutoSizeDuration = animation_duration;
AutoSizeEasing = Easing.OutQuint;
shouldUpdateAutosize = false;
autoSizeTransitionApplied = true;
}
}
}