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() protected override void UpdateAfterAutoSize()
{ {
base.UpdateAfterAutoSize(); base.UpdateAfterAutoSize();
if (shouldUpdateAutosize) if (!autoSizeTransitionApplied)
{ {
AutoSizeDuration = animation_duration; AutoSizeDuration = animation_duration;
AutoSizeEasing = Easing.OutQuint; AutoSizeEasing = Easing.OutQuint;
shouldUpdateAutosize = false; autoSizeTransitionApplied = true;
} }
} }
} }