mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Use new framework exposed event instead of schedule
This commit is contained in:
parent
119a81849c
commit
749b86f0f4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user