Skip to content

Commit

Permalink
fix: add a default icon to notifications on linux (#4283)
Browse files Browse the repository at this point in the history
  • Loading branch information
betamos committed Jun 9, 2022
1 parent 48af969 commit 235e448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/linux-notification-icon.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Set notification icon to app icon on Linux.
2 changes: 2 additions & 0 deletions core/tauri/src/api/notification.rs
Expand Up @@ -83,6 +83,8 @@ impl Notification {
}
if let Some(icon) = self.icon {
notification.icon(&icon);
} else {
notification.auto_icon();
}
#[cfg(windows)]
{
Expand Down

0 comments on commit 235e448

Please sign in to comment.