mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Use Trigger in linux, we have seen some setups were double click is not reported
This commit is contained in:
parent
94d17a1d5c
commit
1ddf0038b8
@ -38,7 +38,13 @@ TrayIconController::TrayIconController(QSettings *settings, LibraryWindow *windo
|
|||||||
|
|
||||||
connect(&trayIcon, &QSystemTrayIcon::activated,
|
connect(&trayIcon, &QSystemTrayIcon::activated,
|
||||||
[=](QSystemTrayIcon::ActivationReason reason) {
|
[=](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();
|
showWindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user