diff --git a/src/Makefile b/src/Makefile index 73af63f..a31fafa 100755 --- a/src/Makefile +++ b/src/Makefile @@ -76,6 +76,7 @@ chrome_sources := $(chrome_sources_js) \ $(wildcard $(chrome_source_root)/content/*.css) \ $(wildcard $(chrome_source_root)/skin/*.css) \ $(wildcard $(chrome_source_root)/skin/*.png) \ + $(wildcard $(chrome_source_root)/skin/*.gif) \ $(wildcard $(chrome_source_root)/locale/*/*.dtd) \ $(wildcard $(chrome_source_root)/locale/*/*.properties) diff --git a/src/chrome/locale/en-US/options.dtd b/src/chrome/locale/en-US/options.dtd index b108b5d..b443162 100644 --- a/src/chrome/locale/en-US/options.dtd +++ b/src/chrome/locale/en-US/options.dtd @@ -31,7 +31,7 @@ - + diff --git a/src/modules/FiretrayMessaging.jsm b/src/modules/FiretrayMessaging.jsm index f48898a..ea79e5b 100644 --- a/src/modules/FiretrayMessaging.jsm +++ b/src/modules/FiretrayMessaging.jsm @@ -78,10 +78,13 @@ firetray.Messaging = { /** * computes total unread message count - * TODO: check news accounts shouldn't be considered */ updateUnreadMsgCount: function() { LOG("unreadMsgCount"); + let prefMailNotification = firetray.Utils.prefService.getIntPref("mail_notification"); + if (prefMailNotification === NOTIFICATION_DISABLED) + return; + let mailAccounts = firetray.Utils.getObjPref('mail_accounts'); let serverTypes = mailAccounts["serverTypes"]; let excludedAccounts = mailAccounts["excludedAccounts"]; @@ -119,7 +122,6 @@ firetray.Messaging = { firetray.Handler.setTooltipDefault(); } else if (this._unreadMsgCount > 0) { - let prefMailNotification = firetray.Utils.prefService.getIntPref("mail_notification"); switch (prefMailNotification) { case NOTIFICATION_UNREAD_MESSAGE_COUNT: