Skip to content

Commit

Permalink
Set notification icon except on Pantheon desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
ztefn committed Sep 4, 2021
1 parent 2d7e37a commit 489a611
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bubble.vala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ public class Bubble : Object
{
notification = new Notification (summary);
notification.set_body (body);

// On elementary OS set_icon is only used to set a badge icon,
// the app icon itself is automatically set based on application ID
// https://docs.elementary.io/develop/apis/notifications#badge-icons
if (Haguichi.current_desktop != "Pantheon")
{
notification.set_icon (new ThemedIcon(Config.ICON_NAME));
}
}

public void show ()
Expand Down

0 comments on commit 489a611

Please sign in to comment.