Merge pull request #992 from guzzard/middle-mouse-click-status-icon

Toggle main window by middle mouse clicking tray icon
This commit is contained in:
TheZ3ro 2017-10-07 18:30:55 +02:00 committed by GitHub
commit 549fef8eb5

View File

@ -855,7 +855,7 @@ void MainWindow::applySettingsChanges()
void MainWindow::trayIconTriggered(QSystemTrayIcon::ActivationReason reason)
{
if (reason == QSystemTrayIcon::Trigger) {
if (reason == QSystemTrayIcon::Trigger || reason == QSystemTrayIcon::MiddleClick) {
toggleWindow();
}
}