Skip to content

Commit

Permalink
WPF - OnWindowStateChanged only set browser to visible if IsVisible =…
Browse files Browse the repository at this point in the history
… true

Previously all browser instances were set to visible when the window was restored from minimized state
  • Loading branch information
amaitland committed Nov 5, 2021
1 parent 5ee96f9 commit 22bdd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CefSharp.Wpf/ChromiumWebBrowser.cs
Expand Up @@ -1691,7 +1691,7 @@ private void OnWindowStateChanged(object sender, EventArgs e)
case WindowState.Normal:
case WindowState.Maximized:
{
if (previousWindowState == WindowState.Minimized)
if (previousWindowState == WindowState.Minimized && IsVisible)
{
OnBrowserWasHidden(false);
}
Expand Down

0 comments on commit 22bdd65

Please sign in to comment.