[Pkg-mozext-commits] [firetray] 184/399: when upgrading, correct mail_notification_type if msg count type is 'new messages'
David Prévot
taffit at alioth.debian.org
Tue Oct 29 18:23:39 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch dfsg-clean
in repository firetray.
commit da2c98633bd2656e8364478587ed2c42870ae3e7
Author: foudfou <foudil.newbie+git at gmail.com>
Date: Fri Mar 2 11:11:47 2012 +0100
when upgrading, correct mail_notification_type if msg count type is 'new messages'
---
src/modules/FiretrayHandler.jsm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/modules/FiretrayHandler.jsm b/src/modules/FiretrayHandler.jsm
index db628f4..9dfc4f6 100644
--- a/src/modules/FiretrayHandler.jsm
+++ b/src/modules/FiretrayHandler.jsm
@@ -103,6 +103,7 @@ firetray.Handler = {
let welcome = function(ver) {
firetray.Handler.openTab(FIRETRAY_SPLASH_PAGE+"#"+ver);
firetray.Handler.tryEraseOldOptions();
+ firetray.Handler.correctMailNotificationType();
};
VersionChange.setInstallHook(welcome);
VersionChange.setUpgradeHook(welcome);
@@ -340,6 +341,13 @@ firetray.Handler = {
}
},
+ correctMailNotificationType: function() {
+ if (firetray.Utils.prefService.getIntPref('message_count_type') ===
+ FIRETRAY_MESSAGE_COUNT_TYPE_NEW)
+ firetray.Utils.prefService.setIntPref('mail_notification_type',
+ FIRETRAY_NOTIFICATION_NEWMAIL_ICON);
+ },
+
quitApplication: function() {
try {
firetray.Utils.timer(function() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git
More information about the Pkg-mozext-commits
mailing list