Skip to content

Commit

Permalink
feeder: disable 'local' fuzzy matching filter options when fuzzy matc…
Browse files Browse the repository at this point in the history
…hing wasn't enabled
  • Loading branch information
stojy committed Sep 5, 2023
1 parent d2b2947 commit 846001c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClrVpin/Feeder/FeederResultsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public FeederResultsViewModel(IList<GameItem> gameItems, IList<LocalGame> 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),
Expand Down

0 comments on commit 846001c

Please sign in to comment.