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

Method handleAppDeactivated

Telegram/SourceFiles/core/application.cpp:1003–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001}
1002
1003void Application::handleAppDeactivated() {
1004 enumerateWindows([&](not_null<Window::Controller*> w) {
1005 w->updateIsActiveBlur();
1006 });
1007 const auto session = _lastActiveWindow
1008 ? _lastActiveWindow->maybeSession()
1009 : nullptr;
1010 if (session) {
1011 session->updates().updateOnline();
1012 }
1013 Ui::Tooltip::Hide();
1014}
1015
1016rpl::producer<bool> Application::appDeactivatedValue() const {
1017 const auto &app

Callers

nothing calls this directly

Calls 4

updateIsActiveBlurMethod · 0.80
updateOnlineMethod · 0.80
maybeSessionMethod · 0.45
updatesMethod · 0.45

Tested by

no test coverage detected