Bug 1696260 - Keep app menu button badges showing while the menu is open. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D107950
This commit is contained in:
Molly Howell
2021-03-15 15:51:19 +00:00
parent 80ccdc5177
commit 6c5cf6c1d4
2 changed files with 14 additions and 13 deletions

View File

@@ -768,8 +768,10 @@ const PanelUI = {
);
if (this.panel.state == "showing" || this.panel.state == "open") {
// If the menu is already showing, then we need to dismiss all notifications
// since we don't want their doorhangers competing for attention
// If the menu is already showing, then we need to dismiss all
// notifications since we don't want their doorhangers competing for
// attention. Don't hide the badge though; it isn't really in competition
// with anything.
doorhangers.forEach(n => {
n.dismissed = true;
if (n.options.onDismissed) {
@@ -777,7 +779,6 @@ const PanelUI = {
}
});
this._hidePopup();
this._clearBadge();
if (!notifications[0].options.badgeOnly) {
this._showBannerItem(notifications[0]);
}