mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Use Trigger in linux, we have seen some setups were double click is not reported
This commit is contained in:
@ -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();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user