diff --git a/src/ViewModels/FilterViewModel.cs b/src/ViewModels/FilterViewModel.cs index 1a5775e..5376f9c 100644 --- a/src/ViewModels/FilterViewModel.cs +++ b/src/ViewModels/FilterViewModel.cs @@ -534,10 +534,13 @@ public void ReFilter(bool force = false) Logger.Warn("Something when wrong during filtering", ex); } } + public void RemoveCodex(Codex c) { _excludedCodices.Remove(c); - FilteredCodices?.Remove(c); + + //Changes to CollectionView Should always be done from dispatcher thread + App.SafeDispatcher.Invoke(() => FilteredCodices?.Remove(c)); } #endregion