disable update on debug builds

This commit is contained in:
Pascal
2025-11-19 07:40:05 +01:00
parent 6454d97173
commit 474f76df4a
2 changed files with 7 additions and 1 deletions

View File

@@ -16,6 +16,10 @@
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);DISABLE_UPDATE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>

View File

@@ -16,7 +16,9 @@ public class AppUpdates(string updateUrl, Window mainWindow)
public async Task UpdateApp()
{
#if !DISABLE_UPDATE
#if DISABLE_UPDATE
await Task.CompletedTask;
#else
try
{
await UpdateAppCore();