Browse Source

misc fixes:

- Fixed search not working when sort by installed
- fixed missing Open Web UI button for SD.Next
- changed model browser page size from 14 -> 20
pull/165/head
JT 1 year ago
parent
commit
fc86ee9489
  1. 7
      CHANGELOG.md
  2. 24
      StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs
  3. 1
      StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs
  4. 2
      StabilityMatrix.Core/Models/Packages/VladAutomatic.cs

7
CHANGELOG.md

@ -5,6 +5,13 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.5
### Changed
- Model Browser page size is now 20 instead of 14
### Fixed
- Fixed [#141](https://github.com/LykosAI/StabilityMatrix/issues/141) - Search not working when sorting by Installed on Model Browser
- Fixed SD.Next not showing "Open Web UI" button when finished loading
## v2.4.6
### Added
- LDSR / ADetailer shared folder links for Automatic1111 Package

24
StabilityMatrix.Avalonia/ViewModels/CheckpointBrowserViewModel.cs

@ -50,7 +50,7 @@ public partial class CheckpointBrowserViewModel : PageViewModelBase
private readonly ServiceManager<ViewModelBase> dialogFactory;
private readonly ILiteDbContext liteDbContext;
private readonly INotificationService notificationService;
private const int MaxModelsPerPage = 14;
private const int MaxModelsPerPage = 20;
private LRUCache<
int /* model id */
,
@ -446,19 +446,15 @@ public partial class CheckpointBrowserViewModel : PageViewModelBase
connectedModels = connectedModels.Where(c => c.ModelType == SelectedModelType);
}
modelRequest = new CivitModelsRequest
{
CommaSeparatedModelIds = string.Join(
",",
connectedModels
.Select(c => c.ConnectedModel!.ModelId)
.GroupBy(m => m)
.Select(g => g.First())
),
Types =
SelectedModelType == CivitModelType.All ? null : new[] { SelectedModelType },
Page = CurrentPageNumber,
};
modelRequest.CommaSeparatedModelIds = string.Join(
",",
connectedModels
.Select(c => c.ConnectedModel!.ModelId)
.GroupBy(m => m)
.Select(g => g.First())
);
modelRequest.Sort = null;
modelRequest.Period = null;
}
// See if query is cached

1
StabilityMatrix.Avalonia/ViewModels/SettingsViewModel.cs

@ -168,6 +168,7 @@ public partial class SettingsViewModel : PageViewModelBase
{
if (oldValue is null || newValue.Name == Cultures.Current.Name)
return;
// Set locale
if (AvailableLanguages.Contains(newValue))
{

2
StabilityMatrix.Core/Models/Packages/VladAutomatic.cs

@ -262,7 +262,7 @@ public class VladAutomatic : BaseGitPackage
void HandleConsoleOutput(ProcessOutput s)
{
onConsoleOutput?.Invoke(s);
if (s.Text.Contains("Running on local URL", StringComparison.OrdinalIgnoreCase))
if (s.Text.Contains("Local URL", StringComparison.OrdinalIgnoreCase))
{
var regex = new Regex(@"(https?:\/\/)([^:\s]+):(\d+)");
var match = regex.Match(s.Text);

Loading…
Cancel
Save