fix: DCHECK when calling app.exit() (#33059)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-02-28 11:45:47 -08:00
committed by GitHub
parent 68c541380e
commit 6dc7384f3a

View File

@@ -109,7 +109,7 @@ void WindowList::DestroyAllWindows() {
ConvertToWeakPtrVector(GetInstance()->windows_);
for (const auto& window : weak_windows) {
if (window)
if (window && !window->IsClosed())
window->CloseImmediately();
}
}