winutil/functions/public
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
..
Invoke-ScratchDialog.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFButton.ps1 Fix language and Logic to Updates (#3087) 2024-12-05 21:18:46 -06:00
Invoke-WPFCloseButton.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFControlPanel.ps1 Add Legacy Print Panel (#2659) 2024-09-09 20:14:22 -05:00
Invoke-WPFFeatureInstall.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFFixesNetwork.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFFixesUpdate.ps1 Fix language and Logic to Updates (#3087) 2024-12-05 21:18:46 -06:00
Invoke-WPFFixesWinget.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFFormVariables.ps1 Test 2023 11 15 (#1209) 2023-11-28 16:11:11 -06:00
Invoke-WPFGetInstalled.ps1 Choco Logic Refactor and Add Checkbox to prefer Chocolatey over Winget (#2596) 2024-09-10 13:02:22 -05:00
Invoke-WPFImpex.ps1 [IMPEX] add link support (#2815) 2024-10-01 15:23:36 -05:00
Invoke-WPFInstall.ps1 Fix the way arguments are passed to the runspace (#2720) 2024-09-12 09:45:54 -05:00
Invoke-WPFInstallUpgrade.ps1 Choco Logic Refactor and Add Checkbox to prefer Chocolatey over Winget (#2596) 2024-09-10 13:02:22 -05:00
Invoke-WPFOOSU.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFPanelAutologin.ps1 Fix 'Invoke-WPFPanelAutologin.ps1' Public Function (#2184) 2024-06-28 09:47:59 -05:00
Invoke-WPFPanelDISM.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFPopup.ps1 [UI/UX] Update the look & feel of the GUI (#2884) 2024-12-05 21:22:33 -06:00
Invoke-WPFPresets.ps1 Change Preset Type and Contains (#2789) 2024-09-23 12:34:45 -05:00
Invoke-WPFRunAdobeCCCleanerTool.ps1 Improve handling of Adobe's CC Cleaner tool (#1635) 2024-02-21 19:32:14 -06:00
Invoke-WPFRunspace.ps1 format update 2024-09-12 09:49:06 -05:00
Invoke-WPFTab.ps1 Simple changes to 'Invoke-WPFTab' Public Function (#2976) 2024-11-07 12:30:15 -06:00
Invoke-WPFTweakPS7.ps1 Choco Logic Refactor and Add Checkbox to prefer Chocolatey over Winget (#2596) 2024-09-10 13:02:22 -05:00
Invoke-WPFtweaksbutton.ps1 Fix the way arguments are passed to the runspace (#2720) 2024-09-12 09:45:54 -05:00
Invoke-WPFUIElements.ps1 [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00
Invoke-WPFUltimatePerformance.ps1 Disable powercfg fix (#2728) 2024-09-20 09:04:26 -05:00
Invoke-WPFundoall.ps1 Edge Removal Fix 2024-08-06 15:50:36 -05:00
Invoke-WPFUnInstall.ps1 Revert "refac(invoke-wpfuninstall.ps1): remove null assignments and simplify …" (#2806) 2024-09-23 12:49:01 -05:00
Invoke-WPFUpdatesdefault.ps1 Fix policy reset for default updates 2024-10-29 16:58:14 -05:00
Invoke-WPFUpdatesdisable.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00
Invoke-WPFUpdatessecurity.ps1 Code Formatting of Repo - Add Preprocessing to Compilation Process - Introduction of Dev/Build Tools to WinUtil (Although very simple at the moment) (#2383) 2024-08-06 15:35:17 -05:00