Every time i worked / wanted to work with them i got annoyed. You define the path and values 3 times i think. The validation, error handling and so one are done at least once for every toggle.
simplify logic for toggles
remove unneeded redundant logic, infos and so one
use regular (existing) tweaks logic
-15kb reduction of winutil.ps1
Testing
all toggles seem to still work on my machine (exept widgets one, which did not work before so not issue of this PR)
I did not update documentation, since it is being reworked either way and documentation is also broken either way
TODO:
[x] load unloaded HKU if needed
[x] add ep restart
[x] fix theming on dark mode toggle
Checklist
[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no errors/warnings/merge conflicts.
Type of Change
Description
Every time i worked / wanted to work with them i got annoyed. You define the path and values 3 times i think. The validation, error handling and so one are done at least once for every toggle.
Testing
Checklist