diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index e219f88c5cbb207e4bec2107829f6631efaf6901..ba743a3830d90a1998a9d15e639e5b2f795079ce 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -60,10 +60,12 @@ fn main() -> std::io::Result<()> {
         _ => {}
       },
       SystemTrayEvent::LeftClick { .. } => {
-        let window = app_handle.get_window("main").unwrap();
-        window.unminimize().unwrap();
-        window.show().unwrap();
-        window.set_focus().unwrap();
+        if cfg![target_os = "windows"] {
+          let window = app_handle.get_window("main").unwrap();
+          window.unminimize().unwrap();
+          window.show().unwrap();
+          window.set_focus().unwrap();
+        }
       }
       _ => {}
     })
diff --git a/src-tauri/src/utils/resolve.rs b/src-tauri/src/utils/resolve.rs
index 343b8807f14405e4d53e60d7a13f1b57d2a9b801..10aa7c91de991a2062bb7bb93a3fe79b12dc45bc 100644
--- a/src-tauri/src/utils/resolve.rs
+++ b/src-tauri/src/utils/resolve.rs
@@ -16,6 +16,7 @@ pub fn resolve_setup(app: &App) {
   #[cfg(target_os = "macos")]
   {
     use tauri_plugin_vibrancy::MacOSVibrancy;
+    #[allow(deprecated)]
     window.apply_vibrancy(MacOSVibrancy::AppearanceBased);
   }