File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ sendNotification({
113
113
// Platform-specific sounds
114
114
async function sendPlatformSpecificNotification () {
115
115
const platformName = platform ()
116
-
116
+
117
117
let soundPath
118
118
if (platformName === ' darwin' ) {
119
119
// On macOS: use system sounds or sound files in the app bundle
@@ -125,7 +125,7 @@ async function sendPlatformSpecificNotification() {
125
125
// On Windows: use file paths
126
126
soundPath = ' notification.wav'
127
127
}
128
-
128
+
129
129
sendNotification ({
130
130
title: ' Platform-specific Notification' ,
131
131
body: ' This notification uses platform-specific sound' ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ interface Options {
72
72
groupSummary ?: boolean
73
73
/**
74
74
* The sound resource name or file path for the notification.
75
- *
75
+ *
76
76
* Platform specific behavior:
77
77
* - On macOS: use system sounds (e.g., "Ping", "Blow") or sound files in the app bundle
78
78
* - 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 {
280
280
if let Some ( icon) = app_. default_window_icon ( ) {
281
281
notification. icon ( icon. rgba ( ) . to_vec ( ) , icon. width ( ) , icon. height ( ) ) ;
282
282
}
283
- // Enable sound if specified
284
- if self . sound . is_some ( ) {
285
- notification. sound ( true ) ;
286
- }
287
283
let _ = notification. show ( ) ;
288
284
} ) ;
289
285
You can’t perform that action at this time.
0 commit comments