Skip to content

Commit 7d71ad4

Browse files
committed
feat(notification): play default sound on WIndows
Ref tauri-apps/tauri#6680
1 parent 94b3747 commit 7d71ad4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changes/notification-sound.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"notification": patch
3+
---
4+
5+
Play a default sound when showing a notification on Windows.

plugins/notification/src/desktop.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ mod imp {
184184
{
185185
notification.app_id(&self.identifier);
186186
}
187+
188+
// will be parsed as a `::winrt_notification::Sound`
189+
notification.sound_name("Default");
187190
}
188191
#[cfg(target_os = "macos")]
189192
{

0 commit comments

Comments
 (0)