From db2dfbce78ba4e70b2d2b8fc2e3592ff6c856cf5 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Wed, 24 Dec 2025 16:42:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E5=8B=BE=E9=80=89=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E4=B8=8B=E8=BD=BD=E6=9B=B4=E6=96=B0=E5=8C=85=E4=B8=94?= =?UTF-8?q?=E6=97=A0=E5=8F=AF=E7=94=A8=E7=9A=84=20OTA=20=E5=A2=9E=E9=87=8F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8C=85=E6=97=B6=E4=BB=8D=E7=84=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E2=80=9C=E5=B0=86=E4=B8=8B=E8=BD=BD=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E5=8C=85xxx=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs b/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs index 095343ce33..4842743673 100644 --- a/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/VersionUpdateViewModel.cs @@ -949,7 +949,7 @@ public class VersionUpdateViewModel : Screen } } - if (_assetsObject == null && fullPackage != null) + if (_assetsObject == null && fullPackage != null && SettingsViewModel.VersionUpdateSettings.AutoDownloadUpdatePackage) { _assetsObject = fullPackage; _logger.Warning("No OTA package found, but full package found."); @@ -1082,7 +1082,7 @@ public class VersionUpdateViewModel : Screen return CheckUpdateRetT.AlreadyLatest; } - if (data["data"]?["update_type"]?.ToObject() == "full") + if (data["data"]?["update_type"]?.ToObject() == "full" && SettingsViewModel.VersionUpdateSettings.AutoDownloadUpdatePackage) { using var toast = new ToastNotification(LocalizationHelper.GetString("NewVersionNoOtaPackage")); toast.Show(30);