fix(optimize): swap enabled/disabled values for update notifications - #723
fix(optimize): swap enabled/disabled values for update notifications#723hamsa0x7 wants to merge 1 commit into
Conversation
|
Hey @hamsa0x7, Thanks for this — you found a real bug, and the 0/1/2 table you quoted is correct. The catch is which value it belongs to. It's now fixed as a three-option dropdown (show everything / hide all except restart warnings / hide everything), writing both values the way the Group Policy template defines them. The policy is machine-scoped, so the HKCU copy is gone as well, and choosing "show all" clears the stale value older builds left behind. Closing this since the fix landed differently, but it started here — thanks for taking the time to dig into it. This will be available for testing in Release 28. Drafted and approved by @memstechtips - Sent by Memory's Agent |
Summary
Swaps the
EnabledValueandDisabledValueproperties for theupdates-notification-levelsetting to correct reversed registry mappings.Problem
Under Windows Group Policy, setting
SetUpdateNotificationLevelto2disables update notifications, whereasnullallows the default behavior (showing notifications). The current mapping had these values transposed, meaning enabling the "Update Notifications" toggle disabled notifications, and disabling the toggle enabled them.Changes
src/Winhance.Core/Features/Optimize/Models/UpdateOptimizations.cs: SwappedEnabledValueandDisabledValuefor both HKCU and HKLMRegistrySettingobjects under theupdates-notification-leveldefinition.Related Issues
Fixes #706