mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 883962 - Make the download button in the appbar toggle the downloads infobar. r=sfoster
This commit is contained in:
parent
02fabf19ca
commit
cccef77c53
@ -70,8 +70,8 @@ var Appbar = {
|
||||
},
|
||||
|
||||
onDownloadButton: function() {
|
||||
// TODO: Bug 883962: Toggle the downloads infobar when the
|
||||
// download button is clicked
|
||||
let notificationBox = Browser.getNotificationBox();
|
||||
notificationBox.notificationsHidden = !notificationBox.notificationsHidden;
|
||||
ContextUI.dismiss();
|
||||
},
|
||||
|
||||
|
@ -169,6 +169,7 @@ var Downloads = {
|
||||
},
|
||||
|
||||
showNotification: function dh_showNotification(title, msg, buttons, priority) {
|
||||
this._notificationBox.notificationsHidden = false;
|
||||
return this._notificationBox.appendNotification(msg,
|
||||
title,
|
||||
URI_GENERIC_ICON_DOWNLOAD,
|
||||
|
@ -101,6 +101,7 @@ HelperAppLauncherDialog.prototype = {
|
||||
.replace("#2", downloadSize)
|
||||
.replace("#3", aLauncher.source.host);
|
||||
|
||||
notificationBox.notificationsHidden = false;
|
||||
let newBar = notificationBox.appendNotification(msg,
|
||||
"save-download",
|
||||
URI_GENERIC_ICON_DOWNLOAD,
|
||||
|
Loading…
Reference in New Issue
Block a user