refactor(notification): pull notify_rust from crates.io (#1432)

This commit is contained in:
Lucas Fernandes Nogueira
2024-06-11 09:31:59 -03:00
committed by GitHub
parent 0b0088821e
commit 3779fb5063
23 changed files with 25 additions and 3401 deletions
+2 -2
View File
@@ -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