Browse Source

Use CloseAllWindows helper

Kevin Sawicki 8 years ago
parent
commit
0883a9f966
1 changed files with 1 additions and 2 deletions
  1. 1 2
      atom/browser/api/atom_api_auto_updater.cc

+ 1 - 2
atom/browser/api/atom_api_auto_updater.cc

@@ -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