Add system-wide policies to disable update checks with UI indicators#3313
Add system-wide policies to disable update checks with UI indicators#3313
Conversation
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
|
@copilot could the naming conflict with the existing ConfigurationManager? |
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Good catch! I've renamed |
|
…tings Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Both requests implemented:
The UI clearly indicates to users when their update check setting is controlled by system policy. |
Changes proposed in this pull request
PolicyManagerandPolicyInfoclasses to load system-wide policies fromconfig.jsonin the application directoryUpdate_DisableUpdateCheckoption to disable update checks for all users on a machineSettingsManager.Load()flowconfig.json.examplefile as part of installation/default files with usage instructionsPolicyManager/PolicyInfoto avoid naming conflicts with existingConfigurationManagerclassRelated issue(s)
Related to enterprise deployment requirements for centralized update control.
Copilot generated summary
Copilot summary
Implements a system-wide policy mechanism similar to Firefox's logprefs pattern. When
config.jsonexists in the application directory with"Update_DisableUpdateCheck": true, all users on that machine will have update checks disabled regardless of their personal settings.Architecture:
PolicyManager.Load()runs before user settings loadSettingsManager.ShouldCheckForUpdatesAtStartupproperty checks system-wide policies first, then falls back to user preferencePolicyManager/PolicyInfoto avoid confusion with existingConfigurationManagerUser Experience:
config.json.examplefile is included in the installation directory with usage instructionsUsage:
Administrators can place a
config.jsonfile in the application installation directory:{ "Update_DisableUpdateCheck": true }Files Modified:
PolicyInfo.cs,PolicyManager.cs- Policy model and loaderSettingsManager.cs- Integrated policy loading, added precedence logicMainWindow.xaml.cs- Updated to respect system-wide policiesSettingsUpdateViewModel.cs- Added policy detection propertySettingsUpdateView.xaml- UI updates for policy-managed settingsNETworkManager.csproj- Include config.json.example in build outputStrings.resx,Strings.Designer.cs- Added localization stringTo-Do
Contributing
By submitting this pull request, I confirm the following:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.