Skip to content

Commit

Permalink
[UI] Update avalonia 11.1.3 (WalletWasabi#12926)
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes authored Aug 21, 2024
1 parent 8d6cef6 commit 913a2c1
Show file tree
Hide file tree
Showing 29 changed files with 911 additions and 5,239 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AvaloniaVersion>11.0.999-cibuild0044755-beta</AvaloniaVersion>
<AvaloniaVersion>11.1.3</AvaloniaVersion>
</PropertyGroup>
<ItemGroup>
<!-- AspNetCore. -->
Expand Down Expand Up @@ -34,9 +34,9 @@
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<!-- UI. -->
<PackageVersion Include="Avalonia" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Controls.TreeDataGrid" Version="11.0.2" />
<PackageVersion Include="Avalonia.Controls.TreeDataGrid" Version="11.0.10" />
<PackageVersion Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Xaml.Behaviors" Version="11.0.5" />
<PackageVersion Include="Avalonia.Xaml.Behaviors" Version="11.1.0" />
<PackageVersion Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)" />
<PackageVersion Include="Avalonia.Skia" Version="$(AvaloniaVersion)" />
Expand All @@ -60,4 +60,4 @@
<PackageVersion Include="xunit" Version="2.6.6" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6" />
</ItemGroup>
</Project>
</Project>
4 changes: 0 additions & 4 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="avalonia-all" value="https://nuget-feed-all.avaloniaui.net/v3/index.json" />
</packageSources>

<packageSourceMapping>
<packageSource key="avalonia-all">
<package pattern="*"/>
</packageSource>
<packageSource key="nuget.org">
<package pattern="*"/>
</packageSource>
Expand Down
2,682 changes: 425 additions & 2,257 deletions WalletWasabi.Fluent.Desktop/packages.lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions WalletWasabi.Fluent/ApplicationStateManager.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System.ComponentModel;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Platform;
using ReactiveUI;
using WalletWasabi.Fluent.Extensions;
using WalletWasabi.Fluent.Helpers;
Expand All @@ -27,14 +29,14 @@ public class ApplicationStateManager : IMainWindowService
private bool _hideRequest;
private bool _isShuttingDown;
private bool _restartRequest;
private IActivatableApplicationLifetime? _activatable;
private IActivatableLifetime? _activatable;

internal ApplicationStateManager(IClassicDesktopStyleApplicationLifetime lifetime, UiContext uiContext, bool startInBg)
{
_lifetime = lifetime;
_stateMachine = new StateMachine<State, Trigger>(State.InitialState);

if (_lifetime is IActivatableApplicationLifetime activatableLifetime)
if (Application.Current?.TryGetFeature<IActivatableLifetime>() is { } activatableLifetime)
{
if (startInBg)
{
Expand Down Expand Up @@ -150,7 +152,6 @@ private void ActivatableLifetimeOnActivated(object? sender, ActivatedEventArgs e
{
switch (e.Kind)
{
case ActivationKind.Background:
case ActivationKind.Reopen:
if (this is IMainWindowService service)
{
Expand Down Expand Up @@ -185,9 +186,9 @@ private void CreateAndShowMainWindow()

MainViewModel.Instance.ApplyUiConfigWindowState();

if (_lifetime is IActivatableApplicationLifetime activatable)
if (Application.Current?.TryGetFeature<IActivatableLifetime>() is { } activatableLifetime)
{
activatable.TryLeaveBackground();
activatableLifetime.TryLeaveBackground();
}

var result = new MainWindow
Expand Down
43 changes: 0 additions & 43 deletions WalletWasabi.Fluent/Behaviors/BindPointerOverBehavior.cs

This file was deleted.

50 changes: 0 additions & 50 deletions WalletWasabi.Fluent/Behaviors/BoundsObserverBehavior.cs

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions WalletWasabi.Fluent/Behaviors/DisposingTrigger.cs

This file was deleted.

40 changes: 0 additions & 40 deletions WalletWasabi.Fluent/Behaviors/ExecuteCommandOnActivatedBehavior.cs

This file was deleted.

This file was deleted.

Loading

0 comments on commit 913a2c1

Please sign in to comment.