fix: process.exit crash in nativeWindowOpen (#30218)

This commit is contained in:
Shelley Vohr
2021-07-22 15:38:11 +02:00
committed by GitHub
parent eca1098b55
commit b24cfe17bc
4 changed files with 50 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ void BrowserWindow::RenderFrameCreated(
}
void BrowserWindow::DidFirstVisuallyNonEmptyPaint() {
if (window()->IsVisible())
if (window()->IsClosed() || window()->IsVisible())
return;
// When there is a non-empty first paint, resize the RenderWidget to force