diff --git a/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs b/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs index 92f691b3..c919ea83 100644 --- a/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs +++ b/StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs @@ -294,6 +294,10 @@ public partial class CheckpointBrowserViewModel : ObservableObject { settingsManager.SetModelBrowserNsfwEnabled(value); ModelCardsView?.Refresh(); + + if (!HasSearched) + return; + UpdateResultsText(); } @@ -329,7 +333,7 @@ public partial class CheckpointBrowserViewModel : ObservableObject private void UpdateResultsText() { NoResultsFound = ModelCardsView?.IsEmpty ?? true; - NoResultsText = ModelCards?.Count == 0 + NoResultsText = ModelCards == null || ModelCards.Count == 0 ? "No results found" : $"{ModelCards?.Count} results hidden by filters"; }