Fix warnings
This commit is contained in:
parent
3e25d227b0
commit
39b2e4e0a0
@ -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>
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user