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

Method appDeactivatedValue

Telegram/SourceFiles/core/application.cpp:1016–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016rpl::producer<bool> Application::appDeactivatedValue() const {
1017 const auto &app
1018 = static_cast<QGuiApplication*>(QCoreApplication::instance());
1019 return rpl::single(
1020 app->applicationState()
1021 ) | rpl::then(
1022 base::qt_signal_producer(
1023 app,
1024 &QGuiApplication::applicationStateChanged
1025 )) | rpl::map([=](Qt::ApplicationState state) {
1026 return (state != Qt::ApplicationActive);
1027 });
1028}
1029
1030void Application::materializeLocalDrafts() {
1031 _materializeLocalDraftsRequests.fire({});

Callers 7

MainWindowMethod · 0.80
initBlobsUnderMethod · 0.80
ControllerMethod · 0.80
PanelMethod · 0.80
refreshTopBarsMethod · 0.80
setupGroupCallBarMethod · 0.80
ReadMetricsTrackerMethod · 0.80

Calls 1

instanceFunction · 0.50

Tested by

no test coverage detected