Skip to content

Commit

Permalink
feat(notification): play default sound on WIndows
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed May 24, 2023
1 parent 94b3747 commit 7d71ad4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/notification-sound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"notification": patch
---

Play a default sound when showing a notification on Windows.
3 changes: 3 additions & 0 deletions plugins/notification/src/desktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
{
Expand Down

0 comments on commit 7d71ad4

Please sign in to comment.