| 500 | } |
| 501 | |
| 502 | void 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 | |
| 511 | void Controller::close() { |
| 512 | _widget.close(); |
nothing calls this directly
no test coverage detected