Skip to content

Commit 235e448

Browse files
authored
fix: add a default icon to notifications on linux (#4283)
1 parent 48af969 commit 235e448

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Set notification icon to app icon on Linux.

core/tauri/src/api/notification.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ impl Notification {
8383
}
8484
if let Some(icon) = self.icon {
8585
notification.icon(&icon);
86+
} else {
87+
notification.auto_icon();
8688
}
8789
#[cfg(windows)]
8890
{

0 commit comments

Comments
 (0)