mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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,
|
||||
[=](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();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user