2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Eliminate the need of Q_OBJECT in main_window_linux and main_window_win

This commit is contained in:
Ilya Fedin
2020-08-28 20:14:19 +04:00
committed by John Preston
parent 612e0d4a10
commit 3c8c059447
5 changed files with 69 additions and 67 deletions

View File

@@ -764,7 +764,9 @@ void MainWindow::handleTrayIconActication(
}
if (reason == QSystemTrayIcon::Context) {
updateTrayMenu(true);
QTimer::singleShot(1, this, SLOT(psShowTrayMenu()));
base::call_delayed(1, this, [=] {
psShowTrayMenu();
});
} else if (!skipTrayClick()) {
if (Platform::IsWayland() ? isVisible() : isActive()) {
minimizeToTray();