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