소스 검색

Choosing an app

Bob Mottram 7 년 전
부모
커밋
a62d7fdd99
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      src/freedombone-controlpanel

+ 3
- 3
src/freedombone-controlpanel 파일 보기

1920
     # shellcheck disable=SC2086
1920
     # shellcheck disable=SC2086
1921
     choice=$(dialog --stdout --backtitle $"Freedombone" \
1921
     choice=$(dialog --stdout --backtitle $"Freedombone" \
1922
                     --title $"Change settings for an App" \
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
     # shellcheck disable=SC2181
1926
     # shellcheck disable=SC2181
1927
-    if [ $? -eq 0 ]; then
1927
+    if [ "$choice" ]; then
1928
         app_index=$((choice-1))
1928
         app_index=$((choice-1))
1929
         chosen_app=${appnames[$app_index]}
1929
         chosen_app=${appnames[$app_index]}
1930
         if [[ $chosen_app != "Exit" ]]; then
1930
         if [[ $chosen_app != "Exit" ]]; then