Skip to content

Commit 914530a

Browse files
committed
fix(ui): search resets on list changes
1 parent cce95cb commit 914530a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ViewModels/MainWindowViewModel.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ public MainWindowViewModel(ILogger logger)
3737
);
3838

3939
FileMakerClips = [];
40+
FileMakerClips.CollectionChanged += (sender, e) =>
41+
{
42+
// reset search text, which will trigger a property notify changed
43+
// that will re-run the search with empty value (which shows all)
44+
SearchText = string.Empty;
45+
};
46+
4047
FilteredClips = [];
4148

4249
LoadClips(CurrentPath);

0 commit comments

Comments
 (0)