Action on application right click (#3243)

* implement right click logic

- right click clears selection and only selects right clicked app

* simplify logic
This commit is contained in:
MyDrift 2025-04-14 19:40:20 +02:00 committed by GitHub
parent b63a17b7dd
commit 29e2c4d197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,9 @@ function Initialize-InstallAppEntry {
$border.Tag = $appKey
$border.ToolTip = $Apps.$appKey.description
$border.Add_MouseUp({
if ($_.ChangedButton -eq [System.Windows.Input.MouseButton]::Right) {
Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*";
}
$childCheckbox = ($this.Child.Children | Where-Object {$_.Template.TargetType -eq [System.Windows.Controls.Checkbox]})[0]
$childCheckBox.isChecked = -not $childCheckbox.IsChecked
})