mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-16 16:47:21 +02:00
refactor(notification): pull notify_rust from crates.io (#1432)
This commit is contained in:
committed by
GitHub
parent
0b0088821e
commit
3779fb5063
@@ -160,7 +160,7 @@ mod imp {
|
||||
deprecated = "This function does not work on Windows 7. Use `Self::notify` instead."
|
||||
)]
|
||||
pub fn show(self) -> crate::Result<()> {
|
||||
let mut notification = crate::notify_rust::Notification::new();
|
||||
let mut notification = notify_rust::Notification::new();
|
||||
if let Some(body) = self.body {
|
||||
notification.body(&body);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ mod imp {
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
let _ = crate::notify_rust::set_application(if tauri::is_dev() {
|
||||
let _ = notify_rust::set_application(if tauri::is_dev() {
|
||||
"com.apple.Terminal"
|
||||
} else {
|
||||
&self.identifier
|
||||
|
||||
Reference in New Issue
Block a user