Merge pull request #401 from tauri-apps/feat/notification-sound

feat(notification): play default sound on Windows
This commit is contained in:
Ngo Iok Ui (Wu Yu Wei)
2023-05-25 11:01:16 +08:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"notification": patch
---
Play a default sound when showing a notification on Windows.
+3
View File
@@ -184,6 +184,9 @@ mod imp {
{
notification.app_id(&self.identifier);
}
// will be parsed as a `::winrt_notification::Sound`
notification.sound_name("Default");
}
#[cfg(target_os = "macos")]
{