File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -56,25 +56,6 @@ public static class SettingsManager
5656 /// </summary>
5757 public static bool HotKeysChanged { get ; set ; }
5858
59- /// <summary>
60- /// Gets whether update check should be performed at startup.
61- /// This respects the system-wide policies (config.json) which take precedence over user settings.
62- /// </summary>
63- public static bool ShouldCheckForUpdatesAtStartup
64- {
65- get
66- {
67- // System-wide policy takes precedence - if set, use the policy value
68- if ( PolicyManager . Current ? . Update_CheckForUpdatesAtStartup . HasValue == true )
69- {
70- return PolicyManager . Current . Update_CheckForUpdatesAtStartup . Value ;
71- }
72-
73- // Otherwise, use the user's setting
74- return Current . Update_CheckForUpdatesAtStartup ;
75- }
76- }
77-
7859 /// <summary>
7960 /// JSON serializer options for consistent serialization/deserialization.
8061 /// </summary>
Original file line number Diff line number Diff line change @@ -561,7 +561,8 @@ private void Load()
561561 NetworkChange . NetworkAddressChanged += ( _ , _ ) => OnNetworkHasChanged ( ) ;
562562
563563 // Search for updates...
564- if ( SettingsManager . ShouldCheckForUpdatesAtStartup )
564+ if ( PolicyManager . Current ? . Update_CheckForUpdatesAtStartup
565+ ?? SettingsManager . Current . Update_CheckForUpdatesAtStartup )
565566 CheckForUpdates ( ) ;
566567 }
567568
You can’t perform that action at this time.
0 commit comments