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:
@@ -223,6 +223,18 @@ function Invoke-WPFUIElements {
|
||||
$sync[$entryInfo.Name].Add_Unchecked({
|
||||
$this.Content = $this.Tag.contentOff
|
||||
})
|
||||
|
||||
if ($null -eq $sync.Buttons) {
|
||||
$sync.Buttons = [System.Collections.Generic.List[PSObject]]::new()
|
||||
}
|
||||
|
||||
if ($sync.Buttons -notcontains $toggleButton.Name) {
|
||||
$toggleButton.Add_Click({
|
||||
[System.Object]$Sender = $args[0]
|
||||
Invoke-WPFButton $Sender.name
|
||||
})
|
||||
$sync.Buttons.Add($toggleButton.Name) | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
"Combobox" {
|
||||
@@ -294,6 +306,18 @@ function Invoke-WPFUIElements {
|
||||
$itemsControl.Items.Add($button) | Out-Null
|
||||
|
||||
$sync[$entryInfo.Name] = $button
|
||||
|
||||
if ($null -eq $sync.Buttons) {
|
||||
$sync.Buttons = [System.Collections.Generic.List[PSObject]]::new()
|
||||
}
|
||||
|
||||
if ($sync.Buttons -notcontains $button.Name) {
|
||||
$button.Add_Click({
|
||||
[System.Object]$Sender = $args[0]
|
||||
Invoke-WPFButton $Sender.name
|
||||
})
|
||||
$sync.Buttons.Add($button.Name) | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
"RadioButton" {
|
||||
|
||||
Reference in New Issue
Block a user