fix(update): confirm with Yes focused and keep the package list aligned

This commit is contained in:
MacRimi
2026-10-28 17:24:14 +01:00
parent 52d44a7435
commit 8ee3b29991
14 changed files with 123 additions and 63 deletions
+2 -6
View File
@@ -169,12 +169,8 @@ EOF
else
# The package list rides in the same dialog as the summary, so
# the decision is taken knowing what is about to be replaced.
# Keep Yes focused while the full package list remains scrollable.
# --keep-tite restores the execution screen after confirmation.
menu_text+="$(translate "Packages to be upgraded"):\n$upgradable_list\n\n"
menu_text+="$(translate "Do you want to proceed with the system update?")"
if dialog --keep-tite --title "$(translate "Proxmox Update")" \
--default-button yes --no-collapse --scrollbar --yesno "$menu_text" 24 78; then
if pmx_confirm_update "$(translate "Proxmox Update")" "$menu_text" "$upgradable_list" \
"$(translate "Do you want to proceed with the system update?")"; then
return 0
else
return 1