Single choice

This commit is contained in:
Bob Mottram 2016-09-30 13:37:19 +01:00
parent 23e8e6f8f4
commit 212b63e04c
1 changed files with 6 additions and 8 deletions

View File

@ -1849,8 +1849,6 @@ function menu_wifi {
} }
function app_settings { function app_settings {
detect_installable_apps detect_installable_apps
applist="" applist=""
@ -1872,17 +1870,17 @@ function app_settings {
applist="$applist $n $backstr on" applist="$applist $n $backstr on"
appnames+=("Exit") appnames+=("Exit")
choices=$(dialog --stdout --backtitle $"Freedombone" \ choice=$(dialog --stdout --backtitle $"Freedombone" \
--title $"Change Settings for an App" \ --title $"Change Settings for an App" \
--radiolist $'Choose:' \ --radiolist $'Choose:' \
27 40 20 $applist) 27 40 20 $applist)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
for choice in $choices
do
app_index = $[choice-1] app_index = $[choice-1]
configure_interactive_${appname[$app_index]} chosen_app=${appnames[$app_index]}
done if [[ $chosen_app != "Exit" ]]; then
configure_interactive_${chosen_app}
fi
fi fi
} }