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:
MyDrift
2024-10-26 17:16:33 +02:00
parent d441952e5e
commit 3faa3bad3d
2 changed files with 9 additions and 8 deletions

View File

@ -89,6 +89,7 @@ function Show-OnlyCheckedApps {
# If no apps are selected, do not allow switching to show only selected
if (($false -eq $sync.ShowOnlySelected) -and ($appKeys.Count -eq 0)) {
Write-Host "No apps selected"
$sync.wpfselectedfilter.IsChecked = $false
return
}
$sync.ShowOnlySelected = -not $sync.ShowOnlySelected