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

Method minimize

Telegram/SourceFiles/window/window_controller.cpp:502–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void Controller::minimize() {
503 if (Core::App().settings().workMode()
504 == Core::Settings::WorkMode::TrayOnly) {
505 _widget.minimizeToTray();
506 } else {
507 _widget.setWindowState(_widget.windowState() | Qt::WindowMinimized);
508 }
509}
510
511void Controller::close() {
512 _widget.close();

Callers

nothing calls this directly

Calls 4

AppClass · 0.85
workModeMethod · 0.80
settingsMethod · 0.80
minimizeToTrayMethod · 0.80

Tested by

no test coverage detected