fix(menu): preview current update selection

This commit is contained in:
Julian lechner committed 2026-09-24 17:08:31 +02:00
1 parent 34adfa6b3e
commit d83ad0ec12
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -92,7 +92,7 @@ function Select-ConfiguredPlugins {
$entries = @(Get-ConfiguredPluginEntries -RepositoryRoot $RepositoryRoot)
$toggleable = @($entries)
$fixed = @($entries | Where-Object { $toggleable -notcontains $_ })
if ($DryRun -or $toggleable.Count -eq 0) { return @{ Selected = $entries; Deselected = @() } }
if ($toggleable.Count -eq 0 -or ($DryRun -and $Mode -eq 'Install')) { return @{ Selected = $entries; Deselected = @() } }
$referenceClients = if ($Client -eq 'Both') { @('Claude','Codex') } else { @($Client) }
$installed = @{}
@@ -116,7 +116,7 @@ function Select-ConfiguredPlugins {
$found
})
$names = @($toggleable | ForEach-Object { $_.name })
$checked = Read-PluginToggleSelection -Names $names -Checked $checked
if (-not $DryRun) { $checked = Read-PluginToggleSelection -Names $names -Checked $checked }
$selected = @()
$deselected = @()
+2 -2
View File
@@ -107,7 +107,7 @@ select_configured_plugins() {
if plugin_toggleable "$root" "$name" "$client"; then toggle_names+=("$name"); else fixed_names+=("$name"); fi
done < <(get_plugin_names "$root")
if [ "$dry_run" = true ] || [ ${#toggle_names[@]} -eq 0 ]; then
if [ ${#toggle_names[@]} -eq 0 ] || { [ "$dry_run" = true ] && [ "$mode" = Install ]; }; then
selected_ref=("${all_names[@]}")
return 0
fi
@@ -144,7 +144,7 @@ select_configured_plugins() {
checked+=("$found")
done
read_plugin_toggle_selection toggle_names checked
if [ "$dry_run" != true ]; then read_plugin_toggle_selection toggle_names checked; fi
local i
for ((i = 0; i < ${#toggle_names[@]}; i++)); do