chore: 填写完cdk后自动检查一次更新

This commit is contained in:
uye
2025-03-08 23:26:37 +08:00
parent abbcbdfdac
commit a786556623
3 changed files with 20 additions and 11 deletions

View File

@@ -274,6 +274,12 @@ public class VersionUpdateSettingsUserControlModel : PropertyChangedBase
return;
}
if (value.Length == 24)
{
_ = Instances.VersionUpdateViewModel.VersionUpdateAndAskToRestartAsync();
_ = ResourceUpdater.ResourceUpdateAndReloadAsync();
}
value = SimpleEncryptionHelper.Encrypt(value);
ConfigurationHelper.SetGlobalValue(ConfigurationKeys.MirrorChyanCdk, value);
}