Ignore already closed windows
This commit is contained in:
parent
ff6a8fac2a
commit
140651c258
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ void WindowList::RemoveObserver(WindowListObserver* observer) {
|
|||
void WindowList::CloseAllWindows() {
|
||||
WindowVector windows = GetInstance()->windows_;
|
||||
for (const auto& window : windows)
|
||||
window->Close();
|
||||
if (!window->IsClosed())
|
||||
window->Close();
|
||||
}
|
||||
|
||||
WindowList::WindowList() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue