Преглед на файлове

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