Bläddra i källkod

Choosing an app

Bob Mottram 7 år sedan
förälder
incheckning
a62d7fdd99
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      src/freedombone-controlpanel

+ 3
- 3
src/freedombone-controlpanel Visa fil

@@ -1920,11 +1920,11 @@ function menu_app_settings {
1920 1920
     # shellcheck disable=SC2086
1921 1921
     choice=$(dialog --stdout --backtitle $"Freedombone" \
1922 1922
                     --title $"Change settings for an App" \
1923
-                    --radiolist $'Choose:' \
1924
-                    26 40 30 $applist)
1923
+                    --menu $'Choose:' \
1924
+                    26 40 30 $applist 3>&2 2>&1 1>&3)
1925 1925
 
1926 1926
     # shellcheck disable=SC2181
1927
-    if [ $? -eq 0 ]; then
1927
+    if [ "$choice" ]; then
1928 1928
         app_index=$((choice-1))
1929 1929
         chosen_app=${appnames[$app_index]}
1930 1930
         if [[ $chosen_app != "Exit" ]]; then