globally fix HKU error & minimize console feedback

- fix HKU issue globally
- remove some console logs, change some others to write-debug
This commit is contained in:
MyDrift
2024-11-07 08:25:30 +01:00
parent feff1078d8
commit 667d96c397
4 changed files with 12 additions and 21 deletions

View File

@ -194,12 +194,6 @@ function Invoke-WPFUIElements {
$sync[$entryInfo.Name].IsChecked = (Get-WinUtilToggleStatus $entryInfo.Name)
if ($sync[$entryInfo.Name].IsChecked) {
write-host "$($entryInfo.Name) is checked" -ForegroundColor Blue
} else {
write-host "$($entryInfo.Name) is not checked" -ForegroundColor Red
}
$sync[$entryInfo.Name].Add_Checked({
[System.Object]$Sender = $args[0]
Invoke-WinUtilTweaks $sender.name