From 3cff5c9d7c39b39bf8d6cd3e71b48977a02f93c7 Mon Sep 17 00:00:00 2001 From: Olai Date: Fri, 4 Nov 2022 14:56:57 +0100 Subject: [PATCH] hotfix --- EnhanceWindows.ps1 | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/EnhanceWindows.ps1 b/EnhanceWindows.ps1 index 14673ef..4147972 100644 --- a/EnhanceWindows.ps1 +++ b/EnhanceWindows.ps1 @@ -393,7 +393,20 @@ function DisableAeroShake(){ } - +function ClockSecs(){ +if ($WPFClockDisplay.IsChecked) + { + Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Value 1 + Stop-Process -n explorer + c:\windows\explorer.exe + } +else + { + Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Value 0 + Stop-Process -n explorer + c:\windows\explorer.exe + } +} $WPFUnpin_Search.Add_Checked{RemSearchwin10} @@ -488,6 +501,16 @@ if($value5.SearchboxTaskbarMode -eq 0) } +$WPFClockDisplay.Add_Checked({ClockSecs}) +$WPFClockDisplay.Add_UnChecked({ClockSecs}) + +$value12 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" +if($value12.ShowSecondsInSystemClock -eq 1) +{ + $WPFClockDisplay.IsChecked = $true +} + +