Browse Source

Merge pull request #493 from ionite34/fix-search-by-id-sort

Fix sorting when searching by model ID in CivitAiBrowser
pull/438/head
JT 10 months ago committed by GitHub
parent
commit
d14bd651b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      StabilityMatrix.Avalonia/ViewModels/CheckpointBrowser/CivitAiBrowserViewModel.cs

6
StabilityMatrix.Avalonia/ViewModels/CheckpointBrowser/CivitAiBrowserViewModel.cs

@ -435,6 +435,12 @@ public partial class CivitAiBrowserViewModel : TabViewModelBase
modelRequest.BaseModel = null;
modelRequest.Types = null;
modelRequest.CommaSeparatedModelIds = SearchQuery[2..];
if (modelRequest.Sort is CivitSortMode.Favorites or CivitSortMode.Installed)
{
SortMode = CivitSortMode.HighestRated;
modelRequest.Sort = CivitSortMode.HighestRated;
}
}
else
{

Loading…
Cancel
Save