Browse Source

Merge pull request #240 from ionite34/fix-model-delete

pull/121/head
Ionite 1 year ago committed by GitHub
parent
commit
fbfa62d94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      CHANGELOG.md
  2. 2
      StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj
  3. 7
      StabilityMatrix.Avalonia/ViewModels/CheckpointManager/CheckpointFolder.cs

5
CHANGELOG.md

@ -5,6 +5,11 @@ 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.4.1
### Fixed
- Fixed deleting checkpoints not updating the visual grid until the page is refreshed
- Fixed updates sometimes freezing on "Installing Requirements" step
## v2.4.0 ## v2.4.0
### Added ### Added
- New installable Package - [Fooocus-MRE](https://github.com/MoonRide303/Fooocus-MRE) - New installable Package - [Fooocus-MRE](https://github.com/MoonRide303/Fooocus-MRE)

2
StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj

@ -8,7 +8,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault> <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<ApplicationIcon>./Assets/Icon.ico</ApplicationIcon> <ApplicationIcon>./Assets/Icon.ico</ApplicationIcon>
<Version>2.3.3-dev.1</Version> <Version>2.4.1-dev.1</Version>
<InformationalVersion>$(Version)</InformationalVersion> <InformationalVersion>$(Version)</InformationalVersion>
<EnableWindowsTargeting>true</EnableWindowsTargeting> <EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup> </PropertyGroup>

7
StabilityMatrix.Avalonia/ViewModels/CheckpointManager/CheckpointFolder.cs

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Collections.Specialized; using System.Collections.Specialized;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Reactive.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Controls.Notifications; using Avalonia.Controls.Notifications;
@ -118,6 +119,12 @@ public partial class CheckpointFolder : ViewModelBase
checkpointFilesCache checkpointFilesCache
.Connect() .Connect()
.DeferUntilLoaded() .DeferUntilLoaded()
.SubscribeMany(
file =>
Observable
.FromEventPattern<EventArgs>(file, nameof(ParentListRemoveRequested))
.Subscribe(_ => checkpointFilesCache.Remove(file))
)
.Bind(CheckpointFiles) .Bind(CheckpointFiles)
.Sort( .Sort(
SortExpressionComparer<CheckpointFile> SortExpressionComparer<CheckpointFile>

Loading…
Cancel
Save