mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
fix(notification): development mode check should use tauri::dev() (#1096)
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user