mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
reorder buttons & fix Togglebutton toggling if action not possible
- reorder getinstalled and clearselection - set togglebutton back if no app is selected
This commit is contained in:
parent
d441952e5e
commit
3faa3bad3d
@ -13,20 +13,20 @@
|
|||||||
"Order": "2",
|
"Order": "2",
|
||||||
"Description": "Toggle between showing all or only the selected applications"
|
"Description": "Toggle between showing all or only the selected applications"
|
||||||
},
|
},
|
||||||
"WPFGetInstalled": {
|
|
||||||
"Content": "Get Installed",
|
|
||||||
"Category": "____Actions",
|
|
||||||
"Type": "Button",
|
|
||||||
"Order": "3",
|
|
||||||
"Description": "Show installed applications"
|
|
||||||
},
|
|
||||||
"WPFClearInstallSelection": {
|
"WPFClearInstallSelection": {
|
||||||
"Content": "Clear Selection",
|
"Content": "Clear Selection",
|
||||||
"Category": "____Actions",
|
"Category": "____Actions",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"Order": "4",
|
"Order": "3",
|
||||||
"Description": "Clear the selection of applications"
|
"Description": "Clear the selection of applications"
|
||||||
},
|
},
|
||||||
|
"WPFGetInstalled": {
|
||||||
|
"Content": "Get Installed",
|
||||||
|
"Category": "____Actions",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "4",
|
||||||
|
"Description": "Show installed applications"
|
||||||
|
},
|
||||||
"WingetRadioButton": {
|
"WingetRadioButton": {
|
||||||
"Content": "Winget",
|
"Content": "Winget",
|
||||||
"Category": "__Package Manager",
|
"Category": "__Package Manager",
|
||||||
|
@ -89,6 +89,7 @@ function Show-OnlyCheckedApps {
|
|||||||
# If no apps are selected, do not allow switching to show only selected
|
# If no apps are selected, do not allow switching to show only selected
|
||||||
if (($false -eq $sync.ShowOnlySelected) -and ($appKeys.Count -eq 0)) {
|
if (($false -eq $sync.ShowOnlySelected) -and ($appKeys.Count -eq 0)) {
|
||||||
Write-Host "No apps selected"
|
Write-Host "No apps selected"
|
||||||
|
$sync.wpfselectedfilter.IsChecked = $false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
$sync.ShowOnlySelected = -not $sync.ShowOnlySelected
|
$sync.ShowOnlySelected = -not $sync.ShowOnlySelected
|
||||||
|
Loading…
Reference in New Issue
Block a user