Skip to content

Commit abc21bc

Browse files
authored
Merge branch 'dev' into forge-classic
2 parents e46b2bc + 435765c commit abc21bc

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
1515
- Fixed Inference ControlNet Preprocessors using incorrect resolution and increased maximum of smallest dimension to 16384
1616
- Fixed Triton/Sage install option showing for incompatible GPUs
1717
- Fixed errors from invalid pip specifiers in requirements files
18+
- Fixed package images sometimes showing as blank due to concurrent image caching. Requests to same image resources are now de-duplicated
1819

1920
## v2.14.0-pre.1
2021
### Added

StabilityMatrix.Avalonia/Controls/VendorLabs/AsyncImage/BetterAsyncImageCacheProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.IO;
33
using System.Reflection;
44
using System.Threading;
5+
using Fusillade;
56
using StabilityMatrix.Avalonia.Controls.VendorLabs.Cache;
67

78
namespace StabilityMatrix.Avalonia.Controls.VendorLabs;
@@ -20,7 +21,8 @@ public static class BetterAsyncImageCacheProvider
2021
&& !string.IsNullOrEmpty(assemblyName)
2122
? Path.Combine(Path.GetTempPath(), assemblyName, "Cache")
2223
: Path.Combine(Path.GetTempPath(), "Cache"),
23-
CacheDuration = TimeSpan.FromDays(1)
24+
CacheDuration = TimeSpan.FromDays(1),
25+
HttpMessageHandler = NetCache.UserInitiated
2426
}
2527
),
2628
LazyThreadSafetyMode.ExecutionAndPublication

StabilityMatrix.Avalonia/Views/Dialogs/SafetensorMetadataDialog.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Orientation="Horizontal" />
6767
</ui:ItemsRepeater.Layout>
6868
<ui:ItemsRepeater.ItemTemplate>
69-
<DataTemplate>
69+
<DataTemplate x:DataType="models:SafetensorMetadata+Tag">
7070
<Button
7171
Command="{Binding $parent[ui:ItemsRepeater].((dialogs:SafetensorMetadataViewModel)DataContext).CopyTagToClipboardCommand}"
7272
CommandParameter="{Binding Name}"
@@ -100,7 +100,7 @@
100100
IsVisible="{Binding !!Metadata.OtherMetadata.Count}"
101101
ItemsSource="{Binding Metadata.OtherMetadata}">
102102
<ui:ItemsRepeater.ItemTemplate>
103-
<DataTemplate>
103+
<DataTemplate x:DataType="models:SafetensorMetadata+Metadata">
104104
<StackPanel Margin="5" Orientation="Vertical">
105105
<TextBlock FontWeight="SemiBold" Text="{Binding Name}" />
106106
<TextBlock Text="{Binding Value}" />

0 commit comments

Comments
 (0)