Skip to content

Commit

Permalink
Web+: set a group name for download notifications
Browse files Browse the repository at this point in the history
It is not clear that these come from Web+ otherwise (since they use the
downloaded file icon rather than the app one).
  • Loading branch information
pulkomandy committed Dec 19, 2014
1 parent d78a330 commit a882137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apps/webpositive/DownloadProgressView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ DownloadProgressView::DownloadFinished()
fStatusBar->SetBarColor(ui_color(B_SUCCESS_COLOR));

BNotification success(B_INFORMATION_NOTIFICATION);
success.SetGroup(B_TRANSLATE("WebPositive"));
success.SetTitle(B_TRANSLATE("Download finished"));
success.SetContent(fPath.Leaf());
BEntry entry(fPath.Path());
Expand All @@ -648,6 +649,7 @@ DownloadProgressView::CancelDownload()
// Also cancel the download
fDownload->Cancel();
BNotification success(B_ERROR_NOTIFICATION);
success.SetGroup(B_TRANSLATE("WebPositive"));
success.SetTitle(B_TRANSLATE("Download aborted"));
success.SetContent(fPath.Leaf());
// Don't make a click on the notification open the file: it is not
Expand Down

0 comments on commit a882137

Please sign in to comment.