瀏覽代碼

zenity width

Bob Mottram 7 年之前
父節點
當前提交
455035e9b1
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      src/freedombone-mesh-reset

+ 2
- 3
src/freedombone-mesh-reset 查看文件

@@ -33,7 +33,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
33 33
 
34 34
 MESH_INSTALL_COMPLETED=/root/.mesh_setup_completed
35 35
 
36
-if ! zenity --question --title='New Identity' --text="Do you want to reset your identity? This will reset ALL data for this peer, and you will not be able to recover it." --ok-label=No --cancel-label=Yes; then
36
+if ! zenity --question --title='New Identity' --text="Do you want to reset your identity? This will reset ALL data for this peer, and you will not be able to recover it." --ok-label=No --cancel-label=Yes --width=300; then
37 37
     sudo batman stop
38 38
     sudo pkill qtox
39 39
     sudo pkill firefox
@@ -46,8 +46,7 @@ if ! zenity --question --title='New Identity' --text="Do you want to reset your
46 46
     if [ -f $HOME/mesh-desktop.sh ]; then
47 47
         $HOME/mesh-desktop.sh
48 48
     else
49
-        dialog --title $"New Identity" \
50
-               --msgbox $"You now have a new identity" 6 40
49
+        zenity --info --title=$"New Identity" --text=$"You now have a new identity" --width=200
51 50
     fi
52 51
 fi
53 52