Skip to content

Commit

Permalink
feat: fix broken context bug in tauri configs
Browse files Browse the repository at this point in the history
  • Loading branch information
katungi committed Jun 20, 2024
1 parent 8822537 commit 1e5ca39
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1e5ca39

Please sign in to comment.