diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index a06920cf..08c01a2c 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -62,6 +62,7 @@ fn main() { log!("Panic occurred: {:?}", info); })); + #[cfg(target_os = "windows")] log!("Are we on Windows 7: {}", helpers::is_windows_7()); let mut config = get_config(); diff --git a/src-tauri/src/util/notifications.rs b/src-tauri/src/util/notifications.rs index dcafaba3..029c206f 100644 --- a/src-tauri/src/util/notifications.rs +++ b/src-tauri/src/util/notifications.rs @@ -6,6 +6,7 @@ use crate::{ }; use tauri::Manager; +#[cfg(target_os = "windows")] use super::helpers::is_windows_7; #[tauri::command]