| 551 | } |
| 552 | |
| 553 | void 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 | |
| 570 | void MainWindow::handleActiveChanged(bool active) { |
| 571 | checkActivation(); |
nothing calls this directly
no test coverage detected