Browse Source

Merge branch 'main' into misc-fixes

pull/165/head
JT 1 year ago committed by GitHub
parent
commit
cacd437069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 2
      StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj
  3. 7
      StabilityMatrix.Core/Services/ModelIndexService.cs

3
CHANGELOG.md

@ -5,12 +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/), 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). and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
## v2.5 ## v2.5.0
### Changed ### Changed
- Model Browser page size is now 20 instead of 14 - Model Browser page size is now 20 instead of 14
### Fixed ### Fixed
- Fixed [#141](https://github.com/LykosAI/StabilityMatrix/issues/141) - Search not working when sorting by Installed on Model Browser - 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 - Fixed SD.Next not showing "Open Web UI" button when finished loading
- Fixed model index startup errors when `./Models` contains unknown custom folder names
## v2.4.6 ## v2.4.6
### Added ### Added

2
StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj

@ -27,7 +27,7 @@
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" /> <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" /> <PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
<PackageReference Include="DynamicData" Version="7.14.2" /> <PackageReference Include="DynamicData" Version="7.14.2" />
<PackageReference Include="FluentAvaloniaUI" Version="2.0.0" /> <PackageReference Include="FluentAvaloniaUI" Version="2.0.4" />
<PackageReference Include="FluentIcons.Avalonia" Version="1.1.217" /> <PackageReference Include="FluentIcons.Avalonia" Version="1.1.217" />
<PackageReference Include="FluentIcons.FluentAvalonia" Version="1.1.217" /> <PackageReference Include="FluentIcons.FluentAvalonia" Version="1.1.217" />
<PackageReference Include="FuzzySharp" Version="2.0.2" /> <PackageReference Include="FuzzySharp" Version="2.0.2" />

7
StabilityMatrix.Core/Services/ModelIndexService.cs

@ -81,8 +81,11 @@ public class ModelIndexService : IModelIndexService
Path.DirectorySeparatorChar, Path.DirectorySeparatorChar,
StringSplitOptions.RemoveEmptyEntries StringSplitOptions.RemoveEmptyEntries
)[0]; )[0];
// Convert to enum // Try Convert to enum
var sharedFolderType = Enum.Parse<SharedFolderType>(sharedFolderName, true); if (!Enum.TryParse<SharedFolderType>(sharedFolderName, out var sharedFolderType))
{
continue;
}
var localModel = new LocalModelFile var localModel = new LocalModelFile
{ {

Loading…
Cancel
Save