mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 19:02:31 +00:00
fix(update): confirm with Yes focused and keep the package list aligned
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user