mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:45:44 +00:00
UI: Minor tweaks.
This commit is contained in:
parent
c9408d9260
commit
e4792002bc
@ -212,7 +212,7 @@ void FortManager::setupTrayIcon()
|
|||||||
switch (reason) {
|
switch (reason) {
|
||||||
case QSystemTrayIcon::Trigger:
|
case QSystemTrayIcon::Trigger:
|
||||||
m_trayTriggered = false;
|
m_trayTriggered = false;
|
||||||
QTimer::singleShot(200, this, [this] {
|
QTimer::singleShot(QApplication::doubleClickInterval(), this, [this] {
|
||||||
if (!m_trayTriggered) {
|
if (!m_trayTriggered) {
|
||||||
m_trayTriggered = true;
|
m_trayTriggered = true;
|
||||||
showProgramsWindow();
|
showProgramsWindow();
|
||||||
@ -232,6 +232,9 @@ void FortManager::setupTrayIcon()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(m_trayIcon, &QSystemTrayIcon::messageClicked,
|
||||||
|
this, &FortManager::showProgramsWindow);
|
||||||
|
|
||||||
updateTrayMenu();
|
updateTrayMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user