Update functions/public/Invoke-WPFUpdateMGMGT.ps1

Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
This commit is contained in:
MyDrift
2025-03-07 18:21:14 +01:00
committed by GitHub
parent dc236b9865
commit 27a97e4650

View File

@ -4,6 +4,11 @@ function Invoke-WPFUpdateMGMT {
[switch]$All
)
if ((-not $Selected -and -not $All) -or ($Selected -and $All)) {
Write-Host "[Invoke-WPFUpdateMGMT] Use either 'Selected' or 'All' switches, used switches are: 'Selected' is $Selected, 'All' is $All" -ForegroundColor Red
return
}
$sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" })
if ($All) {