mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:55:54 +00:00
UI: Minor tweaks.
This commit is contained in:
parent
c9408d9260
commit
e4792002bc
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user