UI: Minor tweaks.

This commit is contained in:
Nodir Temirkhodjaev 2020-01-07 12:02:47 +05:00
parent c9408d9260
commit e4792002bc

View File

@ -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();
}