| 465 | } |
| 466 | |
| 467 | void MainWindow::onTrayIconActivated() |
| 468 | { |
| 469 | setVisible(!this->isVisible()); |
| 470 | |
| 471 | if (isVisible()) |
| 472 | { |
| 473 | raiseWindow(); |
| 474 | } |
| 475 | |
| 476 | // Hide tray icon if disabled and MainWin is visible (for cmdline force switch) |
| 477 | if (!AppConfig::instance().get<bool>(AppConfig::TrayIconEnabled) && this->isVisible()) |
| 478 | { |
| 479 | _trayIcon->setTrayVisible(false); |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | void MainWindow::onConvolverInfoChanged(const ConvolverInfoEventArgs& args) |
| 484 | { |
nothing calls this directly
no test coverage detected