Fix windows build, again

This commit is contained in:
Jonathan Kelley committed 2024-01-06 00:38:32 -08:00
1 parent d7c6aa4577
commit 9efeb51873
1 file changed
+7 -6
+7 -6
View File
@@ -103,12 +103,13 @@ impl WebviewInstance {
.with_file_drop_handler(file_drop_handler) .with_file_drop_handler(file_drop_handler)
.with_web_context(&mut web_context); .with_web_context(&mut web_context);
#[cfg(windows)] // This was removed from wry, I'm not sure what replaced it
{ // #[cfg(windows)]
// Windows has a platform specific settings to disable the browser shortcut keys // {
use wry::WebViewBuilderExtWindows; // // Windows has a platform specific settings to disable the browser shortcut keys
webview = webview.with_browser_accelerator_keys(false); // use wry::WebViewBuilderExtWindows;
} // webview = webview.with_browser_accelerator_keys(false);
// }
if let Some(color) = cfg.background_color { if let Some(color) = cfg.background_color {
webview = webview.with_background_color(color); webview = webview.with_background_color(color);