Skip to content

Commit

Permalink
remove old 0.10.x hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacato committed Dec 6, 2023
1 parent cf5fa54 commit db9c8ec
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions BTCPayServer.Vault/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,12 @@ public static class Extensions
result.UsePlatformDetect();
}

// TODO remove this overriding of RenderTimer when Avalonia 0.9 is released.
// fixes "Thread Leak" issue in 0.8.1 Avalonia.
var old = result.WindowingSubsystemInitializer;

result.UseWindowingSubsystem(() =>
{
old();

AvaloniaLocator.CurrentMutable.Bind<IRenderTimer>().ToConstant(new DefaultRenderTimer(60));
});
var title = GetTitle();

result = result
.With(new Win32PlatformOptions { AllowEglInitialization = true, UseDeferredRendering = true })
.With(new X11PlatformOptions { UseGpu = useGpuLinux, WmClass = title })
.With(new AvaloniaNativePlatformOptions { UseDeferredRendering = true, UseGpu = true })
.With(new Win32PlatformOptions())
.With(new X11PlatformOptions { WmClass = title })
.With(new AvaloniaNativePlatformOptions())
.With(new MacOSPlatformOptions { ShowInDock = true });
services.AddSingleton(result);
services.AddSingleton<MainWindow>();
Expand Down

0 comments on commit db9c8ec

Please sign in to comment.