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

This commit is contained in:
Lucas Fernandes Nogueira
2024-03-20 18:58:34 -03:00
committed by GitHub
parent a04ea2f382
commit 62ce5df52c
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"notification": patch
---
Fix development mode check to set the app ID on macOS.
+3 -3
View File
@@ -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
});
}