Browse Source

Fix duplicate ProgressItemViewModel properties & make vlad update indeterminate & readme tweaks

pull/109/head
JT 1 year ago
parent
commit
3884e4b11b
  1. 8
      README.md
  2. 6
      StabilityMatrix.Avalonia/ViewModels/ProgressItemViewModel.cs
  3. 4
      StabilityMatrix.Core/Models/Packages/VladAutomatic.cs

8
README.md

@ -20,20 +20,20 @@
Multi-Platform Package Manager for Stable Diffusion
### 🖱 One click install and update for Stable Diffusion Web UI Packages
- Supports [Automatic 1111][auto1111], [Comfy UI][comfy], [SD.Next (Vladmandic)][sdnext], [VoltaML][voltaml], [InvokeAI][invokeai], [Fooocus][fooocus]
- Supports [Automatic 1111][auto1111], [Comfy UI][comfy], [SD.Next (Vladmandic)][sdnext], [VoltaML][voltaml], [InvokeAI][invokeai], and [Fooocus][fooocus]
- Embedded Git and Python dependencies, with no need for either to be globally installed
- Fully Portable, move Stability Matrix's Data Directory to a new drive or computer at any time
- Fully portable; move Stability Matrix's Data Directory to a new drive or computer at any time
### 🚀 Launcher with syntax highlighted terminal emulator, routed GUI input prompts
- Launch arguments editor with predefined or custom options for each Package install
- Configurable Environment variables
- Configurable Environment Variables
### 🗃 Checkpoint Manager, configured to be shared by all Package installs
- Option to find CivitAI metadata and preview thumbnails for new local imports
### ☁ Model Browser to import from [CivitAI][civitai]
- Automatically imports to the associated model folder depending on the model type
- Also downloads relevant metadata files and preview image
- Downloads relevant metadata files and preview image
![header](https://github.com/LykosAI/StabilityMatrix/assets/13956642/a9c5f925-8561-49ba-855b-1b7bf57d7c0d)

6
StabilityMatrix.Avalonia/ViewModels/ProgressItemViewModel.cs

@ -6,12 +6,8 @@ using StabilityMatrix.Core.Models.Progress;
namespace StabilityMatrix.Avalonia.ViewModels;
public partial class ProgressItemViewModel : ProgressItemViewModelBase
public class ProgressItemViewModel : ProgressItemViewModelBase
{
[ObservableProperty] private Guid id;
[ObservableProperty] private string name;
[ObservableProperty] private bool failed;
public ProgressItemViewModel(ProgressItem progressItem)
{
Id = progressItem.ProgressId;

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

@ -191,7 +191,7 @@ public class VladAutomatic : BaseGitPackage
public override async Task<string> DownloadPackage(string version, bool isCommitHash,
string? branch, IProgress<ProgressReport>? progress = null)
{
progress?.Report(new ProgressReport(0.1f, message: "Downloading package...",
progress?.Report(new ProgressReport(-1f, message: "Downloading package...",
isIndeterminate: true, type: ProgressType.Download));
var installDir = new DirectoryPath(InstallLocation);
@ -245,7 +245,7 @@ public class VladAutomatic : BaseGitPackage
throw new Exception("Installed branch is null");
}
progress?.Report(new ProgressReport(0.1f, message: "Downloading package update...",
progress?.Report(new ProgressReport(-1f, message: "Downloading package update...",
isIndeterminate: true, type: ProgressType.Update));
await PrerequisiteHelper.RunGit(installedPackage.FullPath, "checkout",

Loading…
Cancel
Save