diff --git a/.changes/visible.md b/.changes/visible.md new file mode 100644 index 000000000..2f4a422b4 --- /dev/null +++ b/.changes/visible.md @@ -0,0 +1,6 @@ +--- +"wry": patch +--- + +Fix visibility on webview2 when window was invisible previously and then shown. + diff --git a/src/webview/win/mod.rs b/src/webview/win/mod.rs index c230ef3a6..7577490c2 100644 --- a/src/webview/win/mod.rs +++ b/src/webview/win/mod.rs @@ -180,6 +180,7 @@ impl WV for InnerWebView { } } + controller.put_is_visible(true); let _ = controller_clone.set(controller); if let Some(file_drop_handler) = file_drop_handler {