winutil/config
MyDrift 1d0e3bfd5c
[FEAT] TweakToggles logik overhaul (#3014)
* move logic to json template

- remove Invoke-WPFToggle.ps1
- generalize Get-WinUtilToggleStatus
- add bingsearch reg key for testing
- use Invoke-WinUtilTweaks for actions
- replace Add-Click with checked & unchecked to make undo work

* add reg params for toggles into tweaks.json

- add all reg keys to tweaks.json into existing toggle entry
- remove unneeded scripts

* fix HKU

- load HKU if needed (for tweaks & GetToggleStatus)
- remove unneeded Invoke-WinUtilNumLock
- has loaded HKU does not load/not stay loaded

* add a lot of error handling

* Bugfix: New-PSDrive seems to return the "hku" itself so weirdly gets prepended to the return value so the result becomes ("hku", $false). In powershell pretty much every variable that exists is interpreted as $true so the toggle for numlock got incorrectly checked

* globally fix HKU error & minimize console feedback

- fix HKU issue globally
- remove some console logs, change some others to write-debug

* update Explorerrefresh

- change Invoke-WinUtilExplorerRefresh to handle refresh and restart
- add restart logic to window snapping Flyout & Suggestions
- rename Invoke-WinUtilExplorerRefresh to Invoke-WinUtilExplorerUpdate

* add explorer restart where needed to take effect

add explorer restart logic for hidden files + Fileextension toggles

* fix missing theme change logic in darkmode toggle

* fix window snapping

- fix issue defining WindowArrangementActive as dword instead of string

* fix bing search

- switch bing search enabled/disabled values

* add a little bit of error handling

- add error handling for Get-WinUtilToggleStatus

---------

Co-authored-by: Marterich <47688561+Marterich@users.noreply.github.com>
2024-12-05 21:24:36 -06:00
..
applications.json Adding .NET 9.0 runtime to applications config (#3041) 2024-12-05 21:19:49 -06:00
autounattend.xml [Microwin] dedicated Function folder (#2888) 2024-11-06 12:11:36 -06:00
dns.json Add dns0.eu (#2808) 2024-10-01 15:20:17 -05:00
feature.json [MicroWin] Fix reference issue after #2888 (#3022) 2024-11-07 12:14:46 -06:00
preset.json Move Disable Teredo to Advanced and Add prefer-ipv4 tweak (#2633) 2024-08-28 11:18:33 -05:00
themes.json [UI/UX] Update the look & feel of the GUI (#2884) 2024-12-05 21:22:33 -06:00
tweaks.json [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00