Jelajahi Sumber

fix: merge conflict resulting in windows lint

Jonathan Kelley 3 bulan lalu
induk
melakukan
650605f4d1
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/desktop/src/menubar.rs

+ 1 - 1
packages/desktop/src/menubar.rs

@@ -35,7 +35,7 @@ mod desktop_platforms {
     #[allow(unused)]
     pub fn init_menu_bar(menu: &Menu, window: &Window) {
         #[cfg(target_os = "windows")]
-        {
+        unsafe {
             use tao::platform::windows::WindowExtWindows;
             menu.init_for_hwnd(window.hwnd());
         }