mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:53:01 +08: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)
|
if (sort != value)
|
||||||
{
|
{
|
||||||
sort = value;
|
sort = value;
|
||||||
FilterChanged?.Invoke(Criteria);
|
FilterChanged?.Invoke(CreateCriteria());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,12 +51,12 @@ namespace osu.Game.Screens.Select
|
|||||||
if (group != value)
|
if (group != value)
|
||||||
{
|
{
|
||||||
group = value;
|
group = value;
|
||||||
FilterChanged?.Invoke(Criteria);
|
FilterChanged?.Invoke(CreateCriteria());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FilterCriteria Criteria => new FilterCriteria
|
public FilterCriteria CreateCriteria() => new FilterCriteria
|
||||||
{
|
{
|
||||||
Group = group,
|
Group = group,
|
||||||
Sort = sort,
|
Sort = sort,
|
||||||
@ -96,7 +96,7 @@ namespace osu.Game.Screens.Select
|
|||||||
OnChange = (sender, newText) =>
|
OnChange = (sender, newText) =>
|
||||||
{
|
{
|
||||||
if (newText)
|
if (newText)
|
||||||
FilterChanged?.Invoke(Criteria);
|
FilterChanged?.Invoke(CreateCriteria());
|
||||||
},
|
},
|
||||||
Exit = () => Exit?.Invoke(),
|
Exit = () => Exit?.Invoke(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user