зеркало из https://github.com/mozilla/pjs.git
Bug #286761 --> change the RSS account icon ("globe") in the folderpane when a feed has new messages.
Set the biff state on a feed folder if, after downloading feed items, the folder has new messages in it. sr=bienvenu
This commit is contained in:
Родитель
1e87ed76ac
Коммит
ce0a0bc40a
|
@ -377,7 +377,15 @@ Feed.prototype =
|
|||
this.storeItemsTimer.initWithCallback(this, 50, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
|
||||
}
|
||||
else
|
||||
{
|
||||
// we have just finished downloading one or more feed items into the destination folder,
|
||||
// if the folder is still listed as having new messages in it, then we should set the biff state on the folder
|
||||
// so the right RDF UI changes happen in the folder pane to indicate new mail.
|
||||
|
||||
if (item.feed.folder.hasNewMessages)
|
||||
item.feed.folder.biffState = Components.interfaces.nsIMsgFolder.nsMsgBiffState_NewMail;
|
||||
this.cleanupParsingState(item.feed);
|
||||
}
|
||||
},
|
||||
|
||||
cleanupParsingState: function(aFeed)
|
||||
|
|
Загрузка…
Ссылка в новой задаче