Browse Source

Merge pull request #92 from ionite34/set-default-model-type

pull/5/head
Ionite 1 year ago committed by GitHub
parent
commit
fcaf8c9c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs

8
StabilityMatrix/ViewModels/CheckpointBrowserViewModel.cs

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

Loading…
Cancel
Save