restructure, fix, additions

This commit is contained in:
MyDrift
2024-07-14 02:20:26 +02:00
parent 27792dc8a3
commit 503f8a7f09
14 changed files with 100 additions and 18 deletions

View File

@ -33,7 +33,13 @@ function Set-WinUtilTaskbaritem {
}
if ($state) {
$sync["Form"].taskbarItemInfo.ProgressState = $state
switch ($state) {
'Indeterminate' { $sync["Form"].taskbarItemInfo.ProgressState = "Indeterminate" }
'Normal' { $sync["Form"].taskbarItemInfo.ProgressState = "Normal" }
'Error' { $sync["Form"].taskbarItemInfo.ProgressState = "Error" }
'Paused' { $sync["Form"].taskbarItemInfo.ProgressState = "Paused" }
default { $sync["Form"].taskbarItemInfo.ProgressState = "None" }
}
}
if ($overlay -and (Test-Path $overlay)) {