diff --git a/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs index 60e4b2ea..2ecfc90e 100644 --- a/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs @@ -13,6 +13,7 @@ using System.Threading.Tasks; using AsyncAwaitBestPractices; using Avalonia.Collections; using Avalonia.Controls; +using Avalonia.Controls.Notifications; using AvaloniaEdit.Utils; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; @@ -455,6 +456,16 @@ public partial class CheckpointBrowserViewModel : PageViewModelBase { var favoriteModels = settingsManager.Settings.FavoriteModels; + if (!favoriteModels.Any()) + { + notificationService.Show( + "No Favorites", + "You have not added any models to your Favorites.", + NotificationType.Error + ); + return; + } + modelRequest.CommaSeparatedModelIds = string.Join(",", favoriteModels); modelRequest.Sort = null; modelRequest.Period = null;