浏览代码

add window ext trait

Jonathan Kelley 1 年之前
父节点
当前提交
9d4a8e1622
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/desktop/src/menubar.rs

+ 3 - 0
packages/desktop/src/menubar.rs

@@ -15,6 +15,9 @@ mod impl_ {
 
     #[allow(unused)]
     pub fn build_menu_bar(menu: Menu, window: &Window) {
+        #[cfg(target_os = "windows")]
+        use tao::platform::windows::WindowExtWindows;
+
         #[cfg(target_os = "windows")]
         menu.init_for_hwnd(window.hwnd());