mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Make sure Close calls Cef.Shutdown()
This commit is contained in:
@@ -54,6 +54,11 @@ namespace CefSharp.WinForms.Example
|
||||
}
|
||||
|
||||
private void ExitMenuItemClick(object sender, EventArgs e)
|
||||
{
|
||||
ExitApplication();
|
||||
}
|
||||
|
||||
private void ExitApplication()
|
||||
{
|
||||
Cef.Shutdown();
|
||||
Close();
|
||||
@@ -123,7 +128,7 @@ namespace CefSharp.WinForms.Example
|
||||
|
||||
if (browserTabControl.Controls.Count == 0)
|
||||
{
|
||||
Close();
|
||||
ExitApplication();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user