فهرست منبع

fix builds for windows

Jonathan Kelley 1 سال پیش
والد
کامیت
d7c6aa4577
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      packages/desktop/src/menubar.rs
  2. 1 1
      packages/desktop/src/webview.rs

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

@@ -16,7 +16,7 @@ mod impl_ {
     #[allow(unused)]
     pub fn build_menu_bar(menu: Menu, window: &Window) {
         #[cfg(target_os = "windows")]
-        menu.init_for_hwnd(window);
+        menu.init_for_hwnd(window.raw_display_handle_rwh_05());
 
         // #[cfg(target_os = "linux")]
         // {

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

@@ -106,7 +106,7 @@ impl WebviewInstance {
         #[cfg(windows)]
         {
             // Windows has a platform specific settings to disable the browser shortcut keys
-            use wry::webview::WebViewBuilderExtWindows;
+            use wry::WebViewBuilderExtWindows;
             webview = webview.with_browser_accelerator_keys(false);
         }