From: intrigeri Date: Tue, 29 Nov 2005 10:08:09 +0000 (+0000) Subject: r3552@krups: intrigeri | 2005-11-15 03:13:03 +0100 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5f3f0bdd385af2dc522967e4fcc9011371778c55;p=matthijs%2Fupstream%2Fbackupninja.git r3552@krups: intrigeri | 2005-11-15 03:13:03 +0100 easydialog: add optional third argument to booleanBox, to set default no if needed (and actually needed by the upcoming dup.helper). git-svn-id: http://code.autistici.org/svn/backupninja/trunk@236 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/handlers/easydialog.sh b/handlers/easydialog.sh index bb7e8e3..0113d9c 100644 --- a/handlers/easydialog.sh +++ b/handlers/easydialog.sh @@ -33,7 +33,7 @@ setDimension() { booleanBox() { $DIALOG --backtitle "$BACKTITLE" --title "$1" \ - --yesno "$2" $HEIGHT $WIDTH + `[ "$3" == no ] && echo '--defaultno'` --yesno "$2" $HEIGHT $WIDTH } msgBox() {