Toggle main window with by middle mouse clicking tray icon

This commit is contained in:
Martin Wallin 2017-09-24 21:36:07 +02:00
parent 5a18b8de77
commit 0c62d8454d

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();
}
}