Skip to content

Commit

Permalink
More bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Aug 21, 2022
1 parent 9c8e5d5 commit c4a802e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions AsyncImageLoader.Avalonia.Demo/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</Application.DataTemplates>

<Application.Styles>
<FluentTheme Mode="Light"/>
<StyleInclude Source="avares://AsyncImageLoader.Avalonia/AdvancedImage.axaml" />
<StyleInclude Source="avares://AsyncImageLoader.Avalonia.Demo/Controls/HamburgerMenu.axaml" />
</Application.Styles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0-preview1" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-preview1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview1" />

<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-preview1" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-preview1" />
Expand Down
2 changes: 1 addition & 1 deletion AsyncImageLoader.Avalonia/AdvancedImage.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static AdvancedImage() {

var loaderChangedObservable = LoaderProperty.Changed
.Where(args => args.IsEffectiveValueChange)
.Where((args, i) => i == 0 || (bool)args.Sender.GetValue(ShouldLoaderChangeTriggerUpdateProperty))
.Where((args, i) => i == 0 || (bool)args.Sender.GetValue(ShouldLoaderChangeTriggerUpdateProperty)!)
.Select(args => args.NewValue.Value)
.StartWith((IAsyncImageLoader?)null);

Expand Down

0 comments on commit c4a802e

Please sign in to comment.