correct inverted cancel state

This commit is contained in:
Pilzinsel64
2024-09-04 07:41:05 +02:00
parent 056e7fb73e
commit f47eb46dec

View File

@@ -95,7 +95,7 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
}
}
if (!RaiseStatusChanged(UpdateStatus.Searching, UpdateStatusEvent.PostEvent, true))
if (RaiseStatusChanged(UpdateStatus.Searching, UpdateStatusEvent.PostEvent, true))
{
UpdatePackageInfo = null;
return null;
@@ -139,7 +139,7 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
else
return false;
if (!RaiseStatusChanged(UpdateStatus.Downloading, UpdateStatusEvent.PostEvent, true))
if (RaiseStatusChanged(UpdateStatus.Downloading, UpdateStatusEvent.PostEvent, true))
{
RaiseStatusChanged(UpdateStatus.Canceled);
return false;
@@ -157,7 +157,7 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
}
// Extract Package
if (!RaiseStatusChanged(UpdateStatus.Extracting, UpdateStatusEvent.PreEvent, true))
if (RaiseStatusChanged(UpdateStatus.Extracting, UpdateStatusEvent.PreEvent, true))
{
RaiseStatusChanged(UpdateStatus.Canceled);
return;