mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
fix(notification): development mode check should use tauri::dev() (#1096)
This commit is contained in:
committed by
GitHub
parent
a04ea2f382
commit
62ce5df52c
@@ -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")]
|
||||
{
|
||||
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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user