From 846001c527b877e10ceffbab4e98be6dde41d1c0 Mon Sep 17 00:00:00 2001 From: stoj Date: Tue, 5 Sep 2023 21:29:53 +0800 Subject: [PATCH] feeder: disable 'local' fuzzy matching filter options when fuzzy matching wasn't enabled --- ClrVpin/Feeder/FeederResultsViewModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ClrVpin/Feeder/FeederResultsViewModel.cs b/ClrVpin/Feeder/FeederResultsViewModel.cs index cce0fa7..edc5205 100644 --- a/ClrVpin/Feeder/FeederResultsViewModel.cs +++ b/ClrVpin/Feeder/FeederResultsViewModel.cs @@ -157,7 +157,8 @@ public FeederResultsViewModel(IList gameItems, IList localG GameFiltersViewModel = new GameFiltersViewModel(GameItemsView, _gameCollections, Settings, () => FilterChangedCommand?.Execute(null)) { TableMatchOptionsView = FeatureOptions.CreateFeatureOptionsMultiSelectionView(StaticSettings.TableMatchOptions, - () => Model.Settings.Feeder.SelectedTableMatchOptions, _ => UpdateOnlineGameFileDetails(), includeSelectAll: false, minimumNumberOfSelections: 1), + () => Model.Settings.Feeder.SelectedTableMatchOptions, _ => UpdateOnlineGameFileDetails(), includeSelectAll: false, minimumNumberOfSelections: 1, + isSupportedFunc: (_, enumOption) => (enumOption.Enum == TableMatchOptionEnum.OnlineOnly || IsMatchingEnabled, MatchingDisabledMessage)), UrlStatusOptionsView = FeatureOptions.CreateFeatureOptionsMultiSelectionView(StaticSettings.UrlStatusOptions, () => Model.Settings.Feeder.SelectedUrlStatusOptions, _ => UpdateOnlineGameFileDetails(), includeSelectAll: false, minimumNumberOfSelections: 1),