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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user