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

Method handleStateChanged

Telegram/SourceFiles/window/main_window.cpp:553–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553void MainWindow::handleStateChanged(Qt::WindowState state) {
554 stateChangedHook(state);
555 updateControlsGeometry();
556 if (state == Qt::WindowMinimized) {
557 controller().updateIsActiveBlur();
558 } else {
559 controller().updateIsActiveFocus();
560 }
561 Core::App().updateNonIdle();
562 using WorkMode = Core::Settings::WorkMode;
563 if (state == Qt::WindowMinimized
564 && (Core::App().settings().workMode() == WorkMode::TrayOnly)) {
565 minimizeToTray();
566 }
567 savePosition(state);
568}
569
570void MainWindow::handleActiveChanged(bool active) {
571 checkActivation();

Callers

nothing calls this directly

Calls 6

AppClass · 0.85
updateIsActiveBlurMethod · 0.80
updateIsActiveFocusMethod · 0.80
updateNonIdleMethod · 0.80
workModeMethod · 0.80
settingsMethod · 0.80

Tested by

no test coverage detected