Hidden File Tweaks (#2320)

* Main

* Fixes previous issues

* Change the ordering of Some Toggle for Consistency

---------

Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
This commit is contained in:
Real-MullaC
2024-07-15 02:01:09 +01:00
committed by GitHub
parent 5b7f0a0edf
commit af36d76e65
4 changed files with 58 additions and 4 deletions

View File

@ -125,6 +125,17 @@ Function Get-WinUtilToggleStatus {
return $true
}
}
if ($ToggleSwitch -eq "WPFToggleHiddenFiles") {
$HiddenFiles = (Get-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced').Hidden
if($HiddenFiles -eq 0){
return $false
}
else{
return $true
}
}
if ($ToggleSwitch -eq "WPFToggleTaskbarWidgets") {
$TaskbarWidgets = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced").TaskBarDa
if($TaskbarWidgets -eq 0) {