Skip to content

Commit

Permalink
Update src-tauri/src/notification_manager.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Pearce <[email protected]>
  • Loading branch information
Misieq01 and brianp authored Oct 28, 2024
1 parent 99ba6ee commit 7ba3886
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src-tauri/src/notification_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ impl NotificationManager {
match PlatformUtils::detect_current_os() {
CurrentOperatingSystem::Linux => {
#[cfg(target_os = "linux")]
let handle = notification.show().inspect_err(
|e| warn!(target: LOG_TARGET, "Failed to show notification: {:?}", e),
)?;
handle.on_close(|notification| {
info!(target: LOG_TARGET, "Notification closed: {:?}", notification);
});
{
let handle = notification.show().inspect_err(
|e| warn!(target: LOG_TARGET, "Failed to show notification: {:?}", e),
)?;
handle.on_close(|notification| {
info!(target: LOG_TARGET, "Notification closed: {:?}", notification);
});
}
Ok(())
}
CurrentOperatingSystem::MacOS => {
Expand Down

0 comments on commit 7ba3886

Please sign in to comment.