1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-12-22 13:58:48 -05:00

run "no new script only" if old msg count > 0

This commit is contained in:
David Wille 2012-05-14 07:35:31 +02:00
parent 51edcf4377
commit 8cdb609369

View File

@ -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();
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;
},