Fix warnings

This commit is contained in:
nicolas.dorier 2023-12-08 16:18:34 +09:00
parent 3e25d227b0
commit 39b2e4e0a0
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 1 additions and 12 deletions

View File

@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="11.0.6" />
<PackageReference Include="Avalonia.Themes.Simple" Version="11.0.6" />
<PackageReference Include="BTCPayServer.NTag424.PCSC" Version="1.0.15" />
<PackageReference Include="BTCPayServer.NTag424.PCSC" Version="1.0.16" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

View File

@ -23,8 +23,6 @@ namespace BTCPayServer.Vault
{
public static void AddAvalonia<TApp>(this IServiceCollection services) where TApp : Application, new()
{
bool useGpuLinux = true;
var result = AppBuilder.Configure<TApp>();
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
@ -33,15 +31,6 @@ namespace BTCPayServer.Vault
.UseWin32()
.UseSkia();
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
if (DetectLLVMPipeRasterizer())
{
useGpuLinux = false;
}
result.UsePlatformDetect();
}
else
{
result.UsePlatformDetect();