mirror of
https://github.com/electron/electron.git
synced 2026-02-18 11:01:47 -05:00
fix: emit window-all-closed after closing the window (#28867)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user