Use Trigger in linux, we have seen some setups were double click is not reported

This commit is contained in:
Luis Ángel San Martín 2019-09-22 13:14:02 +02:00
parent 94d17a1d5c
commit 1ddf0038b8

View File

@ -38,7 +38,13 @@ TrayIconController::TrayIconController(QSettings *settings, LibraryWindow *windo
connect(&trayIcon, &QSystemTrayIcon::activated,
[=](QSystemTrayIcon::ActivationReason reason) {
if (reason == QSystemTrayIcon::DoubleClick) {
#ifdef Q_OS_LINUX
auto expectedReason = QSystemTrayIcon::Trigger;
#else
auto expectedReason = QSystemTrayIcon::DoubleClick;
#endif
if (reason == expectedReason) {
showWindow();
}
});