зеркало из https://github.com/mozilla/pjs.git
Bug 633218 - Add removeOnDismissal option to addons notifications that should go away after restart (addons manager restart notification can persist when restart is no longer needed) [r=gavin, a=beltzner]
This commit is contained in:
Родитель
d9ff2c4304
Коммит
3e21eeb4e5
|
@ -800,6 +800,11 @@ const gXPInstallObserver = {
|
|||
messageString = messageString.replace("#2", installInfo.installs.length);
|
||||
messageString = messageString.replace("#3", brandShortName);
|
||||
|
||||
// Remove notificaion on dismissal, since it's possible to cancel the
|
||||
// install through the addons manager UI, making the "restart" prompt
|
||||
// irrelevant.
|
||||
options.removeOnDismissal = true;
|
||||
|
||||
PopupNotifications.show(browser, notificationID, messageString, anchorID,
|
||||
action, null, options);
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче