From f28bff152bbae385a96dc2b6fe4f4a50cce730b1 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Thu, 30 Jan 2025 00:50:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=85=8D=E5=BE=97=E7=82=B9=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E5=B0=8F=E7=9C=BC=E7=9D=9B=E5=B0=B1=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=20[skip=20changel?= =?UTF-8?q?og]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Settings/VersionUpdateSettingsUserControlModel.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/MaaWpfGui/ViewModels/UserControl/Settings/VersionUpdateSettingsUserControlModel.cs b/src/MaaWpfGui/ViewModels/UserControl/Settings/VersionUpdateSettingsUserControlModel.cs index e1b94ddf5e..e4858bc04c 100644 --- a/src/MaaWpfGui/ViewModels/UserControl/Settings/VersionUpdateSettingsUserControlModel.cs +++ b/src/MaaWpfGui/ViewModels/UserControl/Settings/VersionUpdateSettingsUserControlModel.cs @@ -255,7 +255,11 @@ public class VersionUpdateSettingsUserControlModel : PropertyChangedBase get => _mirrorChyanCdk; set { - SetAndNotify(ref _mirrorChyanCdk, value); + if (!SetAndNotify(ref _mirrorChyanCdk, value)) + { + return; + } + value = SimpleEncryptionHelper.Encrypt(value); ConfigurationHelper.SetGlobalValue(ConfigurationKeys.MirrorChyanCdk, value); }