From e4792002bc3d2393ec4f8a6c5b71d0a8e948129a Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 7 Jan 2020 12:02:47 +0500 Subject: [PATCH] UI: Minor tweaks. --- src/ui/fortmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/fortmanager.cpp b/src/ui/fortmanager.cpp index 942eec88..662a39da 100644 --- a/src/ui/fortmanager.cpp +++ b/src/ui/fortmanager.cpp @@ -212,7 +212,7 @@ void FortManager::setupTrayIcon() switch (reason) { case QSystemTrayIcon::Trigger: m_trayTriggered = false; - QTimer::singleShot(200, this, [this] { + QTimer::singleShot(QApplication::doubleClickInterval(), this, [this] { if (!m_trayTriggered) { m_trayTriggered = true; showProgramsWindow(); @@ -232,6 +232,9 @@ void FortManager::setupTrayIcon() } }); + connect(m_trayIcon, &QSystemTrayIcon::messageClicked, + this, &FortManager::showProgramsWindow); + updateTrayMenu(); }