|
|
|
@ -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; |
|
|
|
|