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

Method activate

Telegram/SourceFiles/core/application.cpp:594–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594void Application::activate() {
595 for (const auto &window : _windowStack) {
596 if (window == _lastActiveWindow) {
597 break;
598 }
599 const auto widget = window->widget();
600 const auto wasHidden = !widget->isVisible();
601 const auto state = widget->windowState();
602 if (state & Qt::WindowMinimized) {
603 widget->setWindowState(state & ~Qt::WindowMinimized);
604 }
605 widget->setVisible(true);
606 widget->activateWindow();
607 if (wasHidden) {
608 if (const auto session = window->sessionController()) {
609 session->content()->windowShown();
610 }
611 }
612 }
613 if (_lastActiveWindow) {
614 _lastActiveWindow->widget()->showFromTray();
615 }
616}
617
618auto Application::prepareEmojiSourceImages()
619-> std::shared_ptr<Ui::Emoji::UniversalImages> {

Callers 15

JoinGroupByHashFunction · 0.45
JoinFilterBySlugFunction · 0.45
ShowStickerSetFunction · 0.45
ShowThemeFunction · 0.45
ShowAiStyleFunction · 0.45
SetLanguageFunction · 0.45
ShareUrlFunction · 0.45
ConfirmPhoneFunction · 0.45
ApplySocksProxyFunction · 0.45
ApplyMtprotoProxyFunction · 0.45
ShowWallPaperFunction · 0.45
ResolveUsernameOrPhoneFunction · 0.45

Calls 7

showFromTrayMethod · 0.80
widgetMethod · 0.45
isVisibleMethod · 0.45
setVisibleMethod · 0.45
sessionControllerMethod · 0.45
windowShownMethod · 0.45
contentMethod · 0.45

Tested by

no test coverage detected