Skip to content

Commit

Permalink
WinForms - Designer avoid calling Cef.Shutdown on Application.Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Feb 23, 2022
1 parent 8927a33 commit 8b9a5e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CefSharp.WinForms/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,13 @@ protected override void OnHandleCreated(EventArgs e)
{
designMode = DesignMode;

if (!designMode)
if(designMode)
{
//For design mode only we remove our custom ApplicationExit event handler
//As we must avoid making all unmanaged calls
Application.ApplicationExit -= OnApplicationExit;
}
else
{
InitializeFieldsAndCefIfRequired();

Expand Down

0 comments on commit 8b9a5e2

Please sign in to comment.