Calculate proper size of menu list dialog

This commit is contained in:
Devin Teske 2016-12-13 02:42:10 +00:00
parent 9a46c67aed
commit b9f60aba8b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309990

View File

@ -224,6 +224,8 @@ while :; do
f_dialog_title "Network Selection"
prompt="Select a wireless network to connect to."
menu_list=$( echo $NETWORKS | tr '\n' ' ' )
f_dialog_menu_size height width rows "$DIALOG_TITLE" \
"$DIALOG_BACKTITLE" "$prompt" "" $menu_list
NETWORK=$( eval $DIALOG \
--title \"\$DIALOG_TITLE\" \
--backtitle \"\$DIALOG_BACKTITLE\" \