Bug 456940 - Customizing the toolbar doubles the account list under the Get Mail button, r=philor

This commit is contained in:
Joey Minta 2009-01-23 12:10:26 -05:00
Родитель b6bd118e75
Коммит 05beb83c63
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -115,7 +115,18 @@ function MailToolboxCustomizeDone(aEvent, customizePopupId)
// make sure our toolbar buttons have the correct enabled state restored to them...
if (this.UpdateMailToolbar != undefined)
UpdateMailToolbar(focus);
UpdateMailToolbar(focus);
// The GetMail button is stuck in a strange state right now, since the
// customization wrapping preserves its children, but not its initialized
// state. Fix that here.
if (document.getElementById("button-getmsg")) {
// We can't use _teardown here, because it'll remove the Get All menuitem
let popup = document.getElementById("button-getMsgPopup");
let sep = document.getElementById("button-getAllNewMsgSeparator");
while (popup.lastChild != sep)
popup.removeChild(popup.lastChild);
}
}
function onViewToolbarCommand(aEvent, toolboxId)