[Pkg-mozext-commits] [firetray] 247/399: run "no new script only" if old msg count > 0
David Prévot
taffit at alioth.debian.org
Tue Oct 29 18:23:52 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 8cdb6093694e023dd9d892da2b839f3e9c0894d5
Author: David Wille <david.wille at ewetel.net>
Date: Mon May 14 07:35:31 2012 +0200
run "no new script only" if old msg count > 0
---
src/modules/FiretrayMessaging.jsm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/modules/FiretrayMessaging.jsm b/src/modules/FiretrayMessaging.jsm
index 2253ec6..ec34131 100644
--- a/src/modules/FiretrayMessaging.jsm
+++ b/src/modules/FiretrayMessaging.jsm
@@ -25,6 +25,7 @@ const FLDRS_UNINTERESTING = {
firetray.Messaging = {
initialized: false,
cleaningTimer: null,
+ oldMsgCount: 0,
init: function() {
if (this.initialized) {
@@ -198,7 +199,9 @@ firetray.Messaging = {
if (newMsgCount == 0) {
firetray.Handler.setIconImageDefault();
firetray.Handler.setIconTooltipDefault();
- this.runNoNewMailScript();
+ if (this.oldMsgCount > 0) {
+ this.runNoNewMailScript();
+ }
} else if (newMsgCount > 0) {
this.runNewMailScript();
@@ -224,6 +227,7 @@ firetray.Messaging = {
} else {
throw "negative message count"; // should never happen
}
+ this.oldMsgCount = newMsgCount;
},
--
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