Use CloseAllWindows helper
This commit is contained in:
parent
8311aa667c
commit
0883a9f966
1 changed files with 1 additions and 2 deletions
|
@ -95,8 +95,7 @@ void AutoUpdater::QuitAndInstall() {
|
||||||
|
|
||||||
// Otherwise do the restart after all windows have been closed.
|
// Otherwise do the restart after all windows have been closed.
|
||||||
window_list->AddObserver(this);
|
window_list->AddObserver(this);
|
||||||
for (NativeWindow* window : *window_list)
|
WindowList::CloseAllWindows();
|
||||||
window->Close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue