Skip to content

Commit 65fd674

Browse files
authored
fix: sound for notifications on windows (fix #6652) (#6680)
1 parent 35cd751 commit 65fd674

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
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+
Play a sound when showing a notification on Windows.

core/tauri/src/api/notification.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ impl Notification {
119119
{
120120
notification.app_id(&self.identifier);
121121
}
122+
123+
// will be parsed as a `::winrt_notification::Sound`
124+
notification.sound_name("Default");
122125
}
123126
#[cfg(target_os = "macos")]
124127
{

0 commit comments

Comments
 (0)