From 29e2c4d197085c3dc8746653e2a5b0bdc9d23e71 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Mon, 14 Apr 2025 19:40:20 +0200 Subject: [PATCH] Action on application right click (#3243) * implement right click logic - right click clears selection and only selects right clicked app * simplify logic --- functions/private/Initalize-InstallAppEntry.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/private/Initalize-InstallAppEntry.ps1 b/functions/private/Initalize-InstallAppEntry.ps1 index 09aa732f..a81adf07 100644 --- a/functions/private/Initalize-InstallAppEntry.ps1 +++ b/functions/private/Initalize-InstallAppEntry.ps1 @@ -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 })