mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-09 15:52:08 +00:00
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:
parent
b63a17b7dd
commit
29e2c4d197
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user