From 7d71ad4e587bcf47ea34645f5b226945e487b765 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 24 May 2023 16:03:50 -0300 Subject: [PATCH] feat(notification): play default sound on WIndows Ref https://github.com/tauri-apps/tauri/pull/6680 --- .changes/notification-sound.md | 5 +++++ plugins/notification/src/desktop.rs | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changes/notification-sound.md diff --git a/.changes/notification-sound.md b/.changes/notification-sound.md new file mode 100644 index 00000000..35f75536 --- /dev/null +++ b/.changes/notification-sound.md @@ -0,0 +1,5 @@ +--- +"notification": patch +--- + +Play a default sound when showing a notification on Windows. diff --git a/plugins/notification/src/desktop.rs b/plugins/notification/src/desktop.rs index 897790f0..401f6569 100644 --- a/plugins/notification/src/desktop.rs +++ b/plugins/notification/src/desktop.rs @@ -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")] {