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

feat(notification): play default sound on Windows
pull/404/head
Ngo Iok Ui (Wu Yu Wei) 2 years ago committed by GitHub
commit a7cba0dac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,5 @@
---
"notification": patch
---
Play a default sound when showing a notification on Windows.

@ -184,6 +184,9 @@ mod imp {
{ {
notification.app_id(&self.identifier); notification.app_id(&self.identifier);
} }
// will be parsed as a `::winrt_notification::Sound`
notification.sound_name("Default");
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
{ {

Loading…
Cancel
Save