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,12 +208,13 @@ function install_apps_selected {
208 208
             dialog --title $"$installs" \
209 209
                    --backtitle $"Freedombone" \
210 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 212
         else
213
+            dialog_height=$((15 + $n))
213 214
             dialog --title $"Add applications" \
214 215
                    --backtitle $"Freedombone" \
215 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 218
         fi
218 219
         sel=$?
219 220
         case $sel in