From bcaf12e3d936145a2a23050716df5f5ff8973e56 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Sat, 18 Mar 2017 02:11:14 +0900 Subject: [PATCH] Rename Criteria -> CreateCriteria and make into method. --- osu.Game/Screens/Select/FilterControl.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Screens/Select/FilterControl.cs b/osu.Game/Screens/Select/FilterControl.cs index 6dfee9e065..6fb05b8988 100644 --- a/osu.Game/Screens/Select/FilterControl.cs +++ b/osu.Game/Screens/Select/FilterControl.cs @@ -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(), },