mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix builds for windows
This commit is contained in:
parent
d07808634a
commit
d7c6aa4577
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ mod impl_ {
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub fn build_menu_bar(menu: Menu, window: &Window) {
|
pub fn build_menu_bar(menu: Menu, window: &Window) {
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
menu.init_for_hwnd(window);
|
menu.init_for_hwnd(window.raw_display_handle_rwh_05());
|
||||||
|
|
||||||
// #[cfg(target_os = "linux")]
|
// #[cfg(target_os = "linux")]
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -106,7 +106,7 @@ impl WebviewInstance {
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
// Windows has a platform specific settings to disable the browser shortcut keys
|
// 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);
|
webview = webview.with_browser_accelerator_keys(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue