mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Rename Criteria -> CreateCriteria and make into method.
This commit is contained in:
parent
cd30958086
commit
bcaf12e3d9
@ -37,7 +37,7 @@ namespace osu.Game.Screens.Select
|
||||
if (sort != value)
|
||||
{
|
||||
sort = value;
|
||||
FilterChanged?.Invoke(Criteria);
|
||||
FilterChanged?.Invoke(CreateCriteria());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -51,12 +51,12 @@ namespace osu.Game.Screens.Select
|
||||
if (group != value)
|
||||
{
|
||||
group = value;
|
||||
FilterChanged?.Invoke(Criteria);
|
||||
FilterChanged?.Invoke(CreateCriteria());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public FilterCriteria Criteria => new FilterCriteria
|
||||
public FilterCriteria CreateCriteria() => new FilterCriteria
|
||||
{
|
||||
Group = group,
|
||||
Sort = sort,
|
||||
@ -96,7 +96,7 @@ namespace osu.Game.Screens.Select
|
||||
OnChange = (sender, newText) =>
|
||||
{
|
||||
if (newText)
|
||||
FilterChanged?.Invoke(Criteria);
|
||||
FilterChanged?.Invoke(CreateCriteria());
|
||||
},
|
||||
Exit = () => Exit?.Invoke(),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user