fix: emit window-all-closed after closing the window (#28867)

This commit is contained in:
Jeremy Rose 2021-04-28 10:55:08 -07:00 committed by GitHub
parent 733f81449d
commit c200840006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View file

@ -423,11 +423,11 @@ void NativeWindow::NotifyWindowClosed() {
if (is_closed_)
return;
WindowList::RemoveWindow(this);
is_closed_ = true;
for (NativeWindowObserver& observer : observers_)
observer.OnWindowClosed();
WindowList::RemoveWindow(this);
}
void NativeWindow::NotifyWindowEndSession() {