Bob Mottram 8 anni fa
parent
commit
212b63e04c
1 ha cambiato i file con 6 aggiunte e 8 eliminazioni
  1. 6
    8
      src/freedombone-controlpanel

+ 6
- 8
src/freedombone-controlpanel Vedi File

1849
 }
1849
 }
1850
 
1850
 
1851
 function app_settings {
1851
 function app_settings {
1852
-
1853
-
1854
     detect_installable_apps
1852
     detect_installable_apps
1855
 
1853
 
1856
     applist=""
1854
     applist=""
1872
     applist="$applist $n $backstr on"
1870
     applist="$applist $n $backstr on"
1873
     appnames+=("Exit")
1871
     appnames+=("Exit")
1874
 
1872
 
1875
-    choices=$(dialog --stdout --backtitle $"Freedombone" \
1873
+    choice=$(dialog --stdout --backtitle $"Freedombone" \
1876
                      --title $"Change Settings for an App" \
1874
                      --title $"Change Settings for an App" \
1877
                      --radiolist $'Choose:' \
1875
                      --radiolist $'Choose:' \
1878
                      27 40 20 $applist)
1876
                      27 40 20 $applist)
1879
 
1877
 
1880
     if [ $? -eq 0 ]; then
1878
     if [ $? -eq 0 ]; then
1881
-        for choice in $choices
1882
-        do
1883
-            app_index = $[choice-1]
1884
-            configure_interactive_${appname[$app_index]}
1885
-        done
1879
+        app_index = $[choice-1]
1880
+        chosen_app=${appnames[$app_index]}
1881
+        if [[ $chosen_app != "Exit" ]]; then
1882
+            configure_interactive_${chosen_app}
1883
+        fi
1886
     fi
1884
     fi
1887
 }
1885
 }
1888
 
1886