| 442 | } |
| 443 | |
| 444 | void Application::checkWindowId(not_null<Window::Controller*> window) { |
| 445 | const auto id = window->id(); |
| 446 | for (auto &[existingId, existing] : _windows) { |
| 447 | if (existing.get() == window && existingId != id) { |
| 448 | auto found = std::move(existing); |
| 449 | _windows.remove(existingId); |
| 450 | _windows.emplace(id, std::move(found)); |
| 451 | break; |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | void Application::showOpenGLCrashNotification() { |
| 457 | const auto enable = [=] { |
no test coverage detected