mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 02:22:34 -05:00
Update functions/public/Invoke-WPFUpdateMGMGT.ps1
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user