winutil/functions/private
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
..
Copy-Files.ps1 [MicroWin] First Anniversary Special PR (#2853) 2024-10-07 15:37:47 -05:00
Get-LocalizedYesNo.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
Get-WinUtilCheckBoxes.ps1 Test 2024 04 20 2 (#2030) 2024-06-04 22:27:27 -05:00
Get-WinUtilInstallerProcess.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
Get-WinUtilToggleStatus.ps1 [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00
Get-WinUtilVariables.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
Get-WinUtilWingetLatest.ps1 Change install to winget, nuget, msstore (#3088) 2024-12-05 21:18:28 -06:00
Get-WPFObjectName.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
Install-WinUtilChoco.ps1 format update 2024-09-12 09:49:06 -05:00
Install-WinUtilProgramChoco.ps1 Change Verbs to be in the list of Approved Verbs (#2912) 2024-11-07 12:07:13 -06:00
Install-WinUtilProgramWinget.ps1 Choco Logic Refactor and Add Checkbox to prefer Chocolatey over Winget (#2596) 2024-09-10 13:02:22 -05:00
Install-WinUtilWinget.ps1 Change install to winget, nuget, msstore (#3088) 2024-12-05 21:18:28 -06:00
Invoke-WinUtilAssets.ps1 Better Image handling (#2665) 2024-09-09 20:19:34 -05:00
Invoke-WinUtilCurrentSystem.ps1 [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00
Invoke-WinUtilExplorerUpdate.ps1 [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00
Invoke-WinUtilFeatureInstall.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-WinUtilGPU.ps1 Improve preprocessor (#2579) 2024-09-09 20:05:10 -05:00
Invoke-WinUtilInstallPSProfile.ps1 [MicroWin] Fix reference issue after #2888 (#3022) 2024-11-07 12:14:46 -06:00
Invoke-WinUtilpsProfile.ps1 CTT Powershell Profile (#2707) 2024-09-10 14:05:55 -05:00
Invoke-WinUtilScript.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-WinUtilSponsors.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-WinUtilSSHServer.ps1 SSH server option (#2745) 2024-10-01 14:20:45 -05:00
Invoke-WinutilThemeChange.ps1 format changes 2024-09-20 09:03:18 -05:00
Invoke-WinUtilTweaks.ps1 [FEAT] TweakToggles logik overhaul (#3014) 2024-12-05 21:24:36 -06:00
Invoke-WinUtilUninstallPSProfile.ps1 [MicroWin] Fix reference issue after #2888 (#3022) 2024-11-07 12:14:46 -06:00
Remove-WinUtilAPPX.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
Set-WinUtilDNS.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
Set-WinUtilProgressbar.ps1 Edge Removal Fix 2024-08-06 15:50:36 -05:00
Set-WinUtilRegistry.ps1 Remove Policies in tweaks.json (#2991) 2024-11-06 18:38:35 -06:00
Set-WinUtilScheduledTask.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
Set-WinUtilService.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
Set-WinUtilTaskbarItem.ps1 Better Image handling (#2665) 2024-09-09 20:19:34 -05:00
Show-CustomDialog.ps1 [UI/UX] Update the look & feel of the GUI (#2884) 2024-12-05 21:22:33 -06:00
Test-WinUtilPackageManager.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
Uninstall-WinUtilEdgeBrowser.ps1 Edge removal improvements (#2540) 2024-08-13 13:49:08 -05:00
Update-WinUtilProgramWinget.ps1 Improve Transcript (#2620) 2024-08-28 17:02:00 -05:00