Skip to content

Commit

Permalink
fix(ui): search resets on list changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzzerd committed Aug 27, 2024
1 parent cce95cb commit 914530a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public MainWindowViewModel(ILogger logger)
);

FileMakerClips = [];
FileMakerClips.CollectionChanged += (sender, e) =>
{
// reset search text, which will trigger a property notify changed
// that will re-run the search with empty value (which shows all)
SearchText = string.Empty;
};

FilteredClips = [];

LoadClips(CurrentPath);
Expand Down

0 comments on commit 914530a

Please sign in to comment.