fix(notification): development mode check should use tauri::dev() (#1096)

pull/1047/head
Lucas Fernandes Nogueira 1 year ago committed by GitHub
parent a04ea2f382
commit 62ce5df52c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"notification": patch
---
Fix development mode check to set the app ID on macOS.

@ -186,10 +186,10 @@ mod imp {
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
{ {
let _ = crate::notify_rust::set_application(if cfg!(feature = "custom-protocol") { let _ = crate::notify_rust::set_application(if tauri::dev() {
&self.identifier
} else {
"com.apple.Terminal" "com.apple.Terminal"
} else {
&self.identifier
}); });
} }

Loading…
Cancel
Save