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); }