From 1e5ca39a20fa522c78a13e8181eeeaffda94ee47 Mon Sep 17 00:00:00 2001 From: katungi Date: Thu, 20 Jun 2024 16:31:34 +0300 Subject: [PATCH] feat: fix broken context bug in tauri configs --- src-tauri/src/main.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 29433c6..abc7774 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -60,23 +60,9 @@ fn main() { .setup(|app| { let window = app.get_window("main").unwrap(); - // #[cfg(target_os = "macos")] - // { - // use cocoa::appkit::{NSMainMenuWindowLevel, NSWindow, NSWindowCollectionBehavior}; - // use cocoa::base::id; - // let ns_win = window.ns_window().unwrap() as id; - // unsafe { - // ns_win.setLevel_(((NSMainMenuWindowLevel + 1) as u64).try_into().unwrap()); - // ns_win.setCollectionBehavior_( - // NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces, - // ); - // // ns_win.setCollectionBehavior_(NSWindowCollectionBehavior::NSWindowCollectionBehaviorMoveToActiveSpace); - // } - // } #[cfg(target_os = "macos")] apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None) .expect("Unsupported platform! 'apply_vibrancy' is only supported on macOS"); - Ok(()) }) .invoke_handler(tauri::generate_handler![on_button_clicked])