瀏覽代碼

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")]
     {