MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / checkWindowId

Method checkWindowId

Telegram/SourceFiles/core/application.cpp:444–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void 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
456void Application::showOpenGLCrashNotification() {
457 const auto enable = [=] {

Callers 1

showAccountMethod · 0.80

Calls 4

emplaceMethod · 0.80
idMethod · 0.45
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected