浏览代码

fix: merge conflict resulting in windows lint

Jonathan Kelley 3 月之前
父节点
当前提交
650605f4d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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());
         }