소스 검색

fix(core): revert #6680, remove default notification sound on Windows (#7229)

fix(core): revert #6680, remove default notification sound on Windows
Amr Bashir 2 년 전
부모
커밋
6afd34727f
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 0
      .changes/core-revet-windows-notification-default-sound.md
  2. 0 3
      core/tauri/src/api/notification.rs

+ 5 - 0
.changes/core-revet-windows-notification-default-sound.md

@@ -0,0 +1,5 @@
+---
+'tauri': 'patch:bug'
+---
+
+Revert [#6680](https://github.com/tauri-apps/tauri/pull/6680) which added a default sound for notifications on Windows. This introduced inconsistency with other platforms that has silent notifications by default. In the upcoming releases, we will add support for modifying the notification sound across all platforms.

+ 0 - 3
core/tauri/src/api/notification.rs

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