fix: StartupUpdateCheck 不生效

This commit is contained in:
uye
2025-02-17 16:30:50 +08:00
parent 0fab23f4e4
commit 1e3d5f28bd
5 changed files with 13 additions and 8 deletions

View File

@@ -269,18 +269,18 @@ public class VersionUpdateSettingsUserControlModel : PropertyChangedBase
}
}
private bool _updateCheck = Convert.ToBoolean(ConfigurationHelper.GetGlobalValue(ConfigurationKeys.UpdateCheck, bool.TrueString));
private bool _startupUpdateCheck = Convert.ToBoolean(ConfigurationHelper.GetGlobalValue(ConfigurationKeys.StartupUpdateCheck, bool.TrueString));
/// <summary>
/// Gets or sets a value indicating whether to check update.
/// </summary>
public bool UpdateCheck
public bool StartupUpdateCheck
{
get => _updateCheck;
get => _startupUpdateCheck;
set
{
SetAndNotify(ref _updateCheck, value);
ConfigurationHelper.SetGlobalValue(ConfigurationKeys.UpdateCheck, value.ToString());
SetAndNotify(ref _startupUpdateCheck, value);
ConfigurationHelper.SetGlobalValue(ConfigurationKeys.StartupUpdateCheck, value.ToString());
}
}