File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ sendNotification({
113113// Platform-specific sounds
114114async function sendPlatformSpecificNotification () {
115115 const platformName = platform ()
116-
116+
117117 let soundPath
118118 if (platformName === ' darwin' ) {
119119 // On macOS: use system sounds or sound files in the app bundle
@@ -125,7 +125,7 @@ async function sendPlatformSpecificNotification() {
125125 // On Windows: use file paths
126126 soundPath = ' notification.wav'
127127 }
128-
128+
129129 sendNotification ({
130130 title: ' Platform-specific Notification' ,
131131 body: ' This notification uses platform-specific sound' ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ interface Options {
7272 groupSummary ?: boolean
7373 /**
7474 * The sound resource name or file path for the notification.
75- *
75+ *
7676 * Platform specific behavior:
7777 * - On macOS: use system sounds (e.g., "Ping", "Blow") or sound files in the app bundle
7878 * - On Linux: use XDG theme sounds (e.g., "message-new-instant") or file paths
Original file line number Diff line number Diff line change @@ -280,10 +280,6 @@ mod imp {
280280 if let Some ( icon) = app_. default_window_icon ( ) {
281281 notification. icon ( icon. rgba ( ) . to_vec ( ) , icon. width ( ) , icon. height ( ) ) ;
282282 }
283- // Enable sound if specified
284- if self . sound . is_some ( ) {
285- notification. sound ( true ) ;
286- }
287283 let _ = notification. show ( ) ;
288284 } ) ;
289285
You can’t perform that action at this time.
0 commit comments