Browse Source

More concise install dialog

Bob Mottram 7 years ago
parent
commit
9386da0cc9
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/freedombone-addremove

+ 3
- 2
src/freedombone-addremove View File

208
             dialog --title $"$installs" \
208
             dialog --title $"$installs" \
209
                    --backtitle $"Freedombone" \
209
                    --backtitle $"Freedombone" \
210
                    --defaultno \
210
                    --defaultno \
211
-                   --yesno $"\nYou have chosen to install the $installs app.\n\nIf you select 'yes' then the install will go ahead.\n\nAre you sure that you wish to continue?" 11 60
211
+                   --yesno $"\nThis will install the $installs app.\n\nProceed?" 9 60
212
         else
212
         else
213
+            dialog_height=$((15 + $n))
213
             dialog --title $"Add applications" \
214
             dialog --title $"Add applications" \
214
                    --backtitle $"Freedombone" \
215
                    --backtitle $"Freedombone" \
215
                    --defaultno \
216
                    --defaultno \
216
-                   --yesno $"\nYou have chosen to install $n apps.\n\n    $installs\n\nIf you select 'yes' then these will now be installed.\n\nAre you sure that you wish to continue?" 15 60
217
+                   --yesno $"\nYou have chosen to install $n apps.\n\n    $installs\n\nProceed?" $dialog_height 60
217
         fi
218
         fi
218
         sel=$?
219
         sel=$?
219
         case $sel in
220
         case $sel in