From a347d541bc4fb6e57f1992180443fc99b806a576 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 20 Aug 2010 14:13:46 -0600 Subject: [PATCH] Hide preview prefs if not active --- imp/lib/Prefs/Ui.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index 2b9407845..7b6954d75 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -273,6 +273,15 @@ class IMP_Prefs_Ui } break; + case 'standard': + if (!$prefs->getValue('preview_enabled')) { + $ui->suppress[] = 'preview_maxlen'; + $ui->suppress[] = 'preview_strip_nl'; + $ui->suppress[] = 'preview_show_unread'; + $ui->suppress[] = 'preview_show_tooltip'; + } + break; + case 'viewing': if (empty($conf['maillog']['use_maillog'])) { $ui->suppress[] = 'disposition_send_mdn'; -- 2.11.0