mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Rename variable to better explain purpose
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user