Web+: set a group name for download notifications
It is not clear that these come from Web+ otherwise (since they use the downloaded file icon rather than the app one).
This commit is contained in:
parent
d78a330deb
commit
a882137926
|
@ -626,6 +626,7 @@ DownloadProgressView::DownloadFinished()
|
||||||
fStatusBar->SetBarColor(ui_color(B_SUCCESS_COLOR));
|
fStatusBar->SetBarColor(ui_color(B_SUCCESS_COLOR));
|
||||||
|
|
||||||
BNotification success(B_INFORMATION_NOTIFICATION);
|
BNotification success(B_INFORMATION_NOTIFICATION);
|
||||||
|
success.SetGroup(B_TRANSLATE("WebPositive"));
|
||||||
success.SetTitle(B_TRANSLATE("Download finished"));
|
success.SetTitle(B_TRANSLATE("Download finished"));
|
||||||
success.SetContent(fPath.Leaf());
|
success.SetContent(fPath.Leaf());
|
||||||
BEntry entry(fPath.Path());
|
BEntry entry(fPath.Path());
|
||||||
|
@ -648,6 +649,7 @@ DownloadProgressView::CancelDownload()
|
||||||
// Also cancel the download
|
// Also cancel the download
|
||||||
fDownload->Cancel();
|
fDownload->Cancel();
|
||||||
BNotification success(B_ERROR_NOTIFICATION);
|
BNotification success(B_ERROR_NOTIFICATION);
|
||||||
|
success.SetGroup(B_TRANSLATE("WebPositive"));
|
||||||
success.SetTitle(B_TRANSLATE("Download aborted"));
|
success.SetTitle(B_TRANSLATE("Download aborted"));
|
||||||
success.SetContent(fPath.Leaf());
|
success.SetContent(fPath.Leaf());
|
||||||
// Don't make a click on the notification open the file: it is not
|
// Don't make a click on the notification open the file: it is not
|
||||||
|
|
Loading…
Reference in New Issue