From 212b63e04c1425774cd3227aa9b6fab030580396 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Sep 2016 13:37:19 +0100 Subject: [PATCH] Single choice --- src/freedombone-controlpanel | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index b206bad0..608d9baa 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -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 }