소스 검색

Show QR codes separately so that it looks better on small netbook-like screens

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

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

@@ -875,25 +875,22 @@ function show_your_email_address {
875 875
            --backtitle $"Freedombone User Control Panel" \
876 876
            --msgbox "${msgstrbase}${bdsmailstr}" $dialog_height 100
877 877
 
878
-    clear
879
-    qr_code_shown=
880 878
     if [ "$onion_domain" ]; then
879
+        clear
881 880
         echo ''
882 881
         echo $'Your onion email address:'
883 882
         echo ''
884 883
         echo -n "${USER}@${onion_domain}" | qrencode -t UTF8
885 884
         echo ''
886
-        qr_code_shown=1
885
+        any_key
887 886
     fi
888 887
     if [ "${bdsmail_address}" ]; then
888
+        clear
889 889
         echo ''
890 890
         echo $'Your bdsmail address:'
891 891
         echo ''
892 892
         echo -n "${bdsmail_address}" | qrencode -t UTF8
893 893
         echo ''
894
-        qr_code_shown=1
895
-    fi
896
-    if [ $qr_code_shown ]; then
897 894
         any_key
898 895
     fi
899 896
 }