Update menu.sh

This commit is contained in:
MacRimi 2025-01-12 18:10:37 +01:00 committed by GitHub
parent bcdc479521
commit 79133f5745
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

15
menu.sh
View File

@ -154,18 +154,28 @@ uninstall_proxmenu() {
fi
}
# Función para mostrar información de versión
show_version_info() {
local version=$(cat "$LOCAL_VERSION_FILE" 2>/dev/null || echo "1.0.0")
whiptail --title "$VERSION_TITLE" --msgbox "$(printf "$VERSION_INFO" "$version")" 12 60
}
# Mostrar menú de configuración
show_config_menu() {
while true; do
OPTION=$(whiptail --title "$CONFIG_TITLE" --menu "$SELECT_OPTION" 15 60 2 \
OPTION=$(whiptail --title "$CONFIG_TITLE" --menu "$SELECT_OPTION" 15 60 3 \
"1" "$LANG_OPTION" \
"2" "$UNINSTALL_OPTION" 3>&1 1>&2 2>&3)
"2" "$VERSION_OPTION" \
"3" "$UNINSTALL_OPTION" 3>&1 1>&2 2>&3)
case $OPTION in
1)
select_language
;;
2)
show_version_info
;;
3)
uninstall_proxmenu
;;
*)
@ -175,6 +185,7 @@ show_config_menu() {
done
}
# Mostrar menú principal
show_menu() {
while true; do