Skip to content

Commit 62ce5df

Browse files
authored
fix(notification): development mode check should use tauri::dev() (#1096)
1 parent a04ea2f commit 62ce5df

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"notification": patch
3+
---
4+
5+
Fix development mode check to set the app ID on macOS.

plugins/notification/src/desktop.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ mod imp {
186186
}
187187
#[cfg(target_os = "macos")]
188188
{
189-
let _ = crate::notify_rust::set_application(if cfg!(feature = "custom-protocol") {
190-
&self.identifier
191-
} else {
189+
let _ = crate::notify_rust::set_application(if tauri::dev() {
192190
"com.apple.Terminal"
191+
} else {
192+
&self.identifier
193193
});
194194
}
195195

0 commit comments

Comments
 (0)