mirror of
https://github.com/ppy/osu.git
synced 2026-06-09 23:14:52 +08:00
Use new framework exposed event instead of schedule
This commit is contained in:
@@ -284,14 +284,7 @@ namespace osu.Game.Overlays
|
||||
public string SearchTerm
|
||||
{
|
||||
get => SearchContainer.SearchTerm;
|
||||
set
|
||||
{
|
||||
SearchContainer.SearchTerm = value;
|
||||
|
||||
// Schedule required as search term takes a frame to update.
|
||||
// Without this sections may not be in the correct state to ascertain CurrentSection.
|
||||
Schedule(InvalidateScrollPosition);
|
||||
}
|
||||
set => SearchContainer.SearchTerm = value;
|
||||
}
|
||||
|
||||
protected override FlowContainer<SettingsSection> CreateScrollContentContainer()
|
||||
@@ -310,6 +303,8 @@ namespace osu.Game.Overlays
|
||||
Colour = colourProvider.Background4,
|
||||
RelativeSizeAxes = Axes.Both
|
||||
};
|
||||
|
||||
SearchContainer.FilterCompleted += InvalidateScrollPosition;
|
||||
}
|
||||
|
||||
protected override void UpdateAfterChildren()
|
||||
|
||||
Reference in New Issue
Block a user