From 62ce5df52ca3c86786e711ef193a206e7b0dc0cf Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 20 Mar 2024 18:58:34 -0300 Subject: [PATCH] fix(notification): development mode check should use tauri::dev() (#1096) --- .changes/notification-fix-dev-check.md | 5 +++++ plugins/notification/src/desktop.rs | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changes/notification-fix-dev-check.md diff --git a/.changes/notification-fix-dev-check.md b/.changes/notification-fix-dev-check.md new file mode 100644 index 00000000..8fa6f45e --- /dev/null +++ b/.changes/notification-fix-dev-check.md @@ -0,0 +1,5 @@ +--- +"notification": patch +--- + +Fix development mode check to set the app ID on macOS. diff --git a/plugins/notification/src/desktop.rs b/plugins/notification/src/desktop.rs index 5abd0d23..32345bb2 100644 --- a/plugins/notification/src/desktop.rs +++ b/plugins/notification/src/desktop.rs @@ -186,10 +186,10 @@ mod imp { } #[cfg(target_os = "macos")] { - let _ = crate::notify_rust::set_application(if cfg!(feature = "custom-protocol") { - &self.identifier - } else { + let _ = crate::notify_rust::set_application(if tauri::dev() { "com.apple.Terminal" + } else { + &self.identifier }); }