Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
OlaYZen committed Nov 4, 2022
1 parent 7ab24a2 commit 3cff5c9
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion EnhanceWindows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
}





Expand Down

0 comments on commit 3cff5c9

Please sign in to comment.