mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use CloseAllWindows helper
This commit is contained in:
@@ -95,8 +95,7 @@ void AutoUpdater::QuitAndInstall() {
|
||||
|
||||
// Otherwise do the restart after all windows have been closed.
|
||||
window_list->AddObserver(this);
|
||||
for (NativeWindow* window : *window_list)
|
||||
window->Close();
|
||||
WindowList::CloseAllWindows();
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user