зеркало из https://github.com/mozilla/pjs.git
fix 270069 status bar total and unread counts for single folder virtual folders, tbird only, sr=mscott
This commit is contained in:
Родитель
8fb25aba78
Коммит
03ca4d96ea
|
@ -360,7 +360,7 @@ function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder)
|
|||
|
||||
SetUpToolbarButtons(uri);
|
||||
|
||||
UpdateStatusMessageCounts(newFolder);
|
||||
UpdateStatusMessageCounts(gMsgFolderSelected);
|
||||
|
||||
// hook for extra toolbar items
|
||||
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
|
||||
|
@ -847,6 +847,7 @@ function FolderPaneSelectionChange()
|
|||
var searchOnline = dbFolderInfo.getBooleanProperty("searchOnline", false);
|
||||
// trick the view code into updating the real folder...
|
||||
gCurrentVirtualFolderUri = uriToLoad;
|
||||
viewDebug("uriToLoad = " + uriToLoad + "\n");
|
||||
var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");
|
||||
var srchFolderUriArray = srchFolderUri.split('|');
|
||||
// cross folder search
|
||||
|
|
|
@ -154,7 +154,7 @@ var folderListener = {
|
|||
OnItemIntPropertyChanged: function(item, property, oldValue, newValue) {
|
||||
if (item == msgWindow.openFolder) {
|
||||
if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") {
|
||||
UpdateStatusMessageCounts(msgWindow.openFolder);
|
||||
UpdateStatusMessageCounts(gMsgFolderSelected);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче