Fix windows build, again
This commit is contained in:
1 file changed
+7
-6
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user