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:
Margaret Leibovic 2011-02-16 10:51:56 -05:00
Родитель d9ff2c4304
Коммит 3e21eeb4e5
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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;