update extra toolbar. I think there might be a bug in the command updating suppression code here.
git-svn-id: svn://10.0.0.236/branches/ANYTHING_FOR_PUTTERMAN_BRANCH@126130 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -318,7 +318,12 @@ function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder)
|
||||
}
|
||||
|
||||
SetUpToolbarButtons(uri);
|
||||
|
||||
UpdateStatusMessageCounts(newFolder);
|
||||
|
||||
// hook for extra toolbar items
|
||||
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
|
||||
observerService.notifyObservers(window, "mail:updateToolbarItems", null);
|
||||
}
|
||||
|
||||
function SwitchView(command)
|
||||
|
||||
@@ -350,9 +350,15 @@ function HandleDeleteOrMoveMsgCompleted(folder)
|
||||
if (treeView)
|
||||
treeView.selectionChanged();
|
||||
|
||||
|
||||
EnsureRowInThreadTreeIsVisible(gNextMessageViewIndexAfterDelete);
|
||||
gDBView.suppressCommandUpdating = false;
|
||||
|
||||
// hook for extra toolbar items
|
||||
// XXX I think there is a bug in the suppression code above.
|
||||
// what if I have two rows selected, and I hit delete, and so we load the next row.
|
||||
// what if I have commands that only enable where exactly one row is selected?
|
||||
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
|
||||
observerService.notifyObservers(window, "mail:updateToolbarItems", null);
|
||||
}
|
||||
}
|
||||
gNextMessageViewIndexAfterDelete = -2;
|
||||
|
||||
Reference in New Issue
Block a user