mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
Clean up analyzer warnings across app search and ISO workflows (#4794)
* Clean up analyzer warnings * Align analyzer warning cleanup policy * Run PSScriptAnalyzer directly in unittests workflow * Bind lazy-rendered buttons to click handlers * Remove WinUtil performance tracing * Fix Win11 ISO creator temp directory reuse
This commit is contained in:
@@ -3,7 +3,7 @@ function Get-WinUtilSelectedPackages {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[object] $PackageList,
|
||||
|
||||
|
||||
[Parameter(Mandatory = $true)]
|
||||
[PackageManagers] $Preference
|
||||
)
|
||||
@@ -14,12 +14,12 @@ function Get-WinUtilSelectedPackages {
|
||||
Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" }
|
||||
}
|
||||
|
||||
$packages = [System.Collections.Hashtable]::new()
|
||||
$packagesWinget = [System.Collections.ArrayList]::new()
|
||||
$packagesChoco = [System.Collections.ArrayList]::new()
|
||||
|
||||
$packages[[PackageManagers]::Winget] = $packagesWinget
|
||||
$packages[[PackageManagers]::Choco] = $packagesChoco
|
||||
$packages = @{
|
||||
([PackageManagers]::Winget) = $packagesWinget
|
||||
([PackageManagers]::Choco) = $packagesChoco
|
||||
}
|
||||
|
||||
function Add-PackageId {
|
||||
param(
|
||||
|
||||
Reference in New Issue
Block a user