|
|
@ -49,7 +49,11 @@ public partial class CheckpointBrowserViewModel : ObservableObject |
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<CivitPeriod> AllCivitPeriods => Enum.GetValues(typeof(CivitPeriod)).Cast<CivitPeriod>(); |
|
|
|
public IEnumerable<CivitPeriod> AllCivitPeriods => Enum.GetValues(typeof(CivitPeriod)).Cast<CivitPeriod>(); |
|
|
|
public IEnumerable<CivitSortMode> AllSortModes => Enum.GetValues(typeof(CivitSortMode)).Cast<CivitSortMode>(); |
|
|
|
public IEnumerable<CivitSortMode> AllSortModes => Enum.GetValues(typeof(CivitSortMode)).Cast<CivitSortMode>(); |
|
|
|
public IEnumerable<CivitModelType> AllModelTypes => Enum.GetValues(typeof(CivitModelType)).Cast<CivitModelType>(); |
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<CivitModelType> AllModelTypes => Enum.GetValues(typeof(CivitModelType)) |
|
|
|
|
|
|
|
.Cast<CivitModelType>() |
|
|
|
|
|
|
|
.Where(t => t != CivitModelType.AestheticGradient && t != CivitModelType.Poses) |
|
|
|
|
|
|
|
.OrderBy(t => t.ToString()); |
|
|
|
|
|
|
|
|
|
|
|
public CheckpointBrowserViewModel( |
|
|
|
public CheckpointBrowserViewModel( |
|
|
|
ICivitApi civitApi, |
|
|
|
ICivitApi civitApi, |
|
|
@ -67,7 +71,7 @@ public partial class CheckpointBrowserViewModel : ObservableObject |
|
|
|
ShowNsfw = settingsManager.Settings.ModelBrowserNsfwEnabled; |
|
|
|
ShowNsfw = settingsManager.Settings.ModelBrowserNsfwEnabled; |
|
|
|
SelectedPeriod = CivitPeriod.Month; |
|
|
|
SelectedPeriod = CivitPeriod.Month; |
|
|
|
SortMode = CivitSortMode.HighestRated; |
|
|
|
SortMode = CivitSortMode.HighestRated; |
|
|
|
SelectedModelType = CivitModelType.All; |
|
|
|
SelectedModelType = CivitModelType.Checkpoint; |
|
|
|
HasSearched = false; |
|
|
|
HasSearched = false; |
|
|
|
CurrentPageNumber = 1; |
|
|
|
CurrentPageNumber = 1; |
|
|
|
CanGoToPreviousPage = false; |
|
|
|
CanGoToPreviousPage = false; |
|
|
|