Skip to content

Commit

Permalink
Add extra platform flagh
Browse files Browse the repository at this point in the history
  • Loading branch information
Misieq01 committed Sep 24, 2024
1 parent e391159 commit 3aa8b69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src-tauri/src/notification_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ impl NotificationManager {

match Self::detect_current_os() {
CurrentOperatingSystem::Linux => {
#[cfg(target_os = "linux")]
notification.show().unwrap().on_close(
|notification| {
info!(target: LOG_TARGET, "Notification closed: {:?}", notification);
},
);
}
CurrentOperatingSystem::MacOS => {
#[cfg(target_os = "macos")]
notification.show().unwrap();
}
CurrentOperatingSystem::Windows => {
#[cfg(target_os = "windows")]
notification.show().unwrap();
}
}
Expand Down

0 comments on commit 3aa8b69

Please sign in to comment.