mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash with event loop nesting tracking.
This commit is contained in:
@@ -675,9 +675,13 @@ void MainWindow::showFromTray(QSystemTrayIcon::ActivationReason reason) {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::toggleTray(QSystemTrayIcon::ActivationReason reason) {
|
||||
void MainWindow::handleTrayIconActication(
|
||||
QSystemTrayIcon::ActivationReason reason) {
|
||||
updateIsActive(0);
|
||||
if ((cPlatform() == dbipMac || cPlatform() == dbipMacOld) && isActive()) return;
|
||||
if ((cPlatform() == dbipMac || cPlatform() == dbipMacOld)
|
||||
&& isActive()) {
|
||||
return;
|
||||
}
|
||||
if (reason == QSystemTrayIcon::Context) {
|
||||
updateTrayMenu(true);
|
||||
QTimer::singleShot(1, this, SLOT(psShowTrayMenu()));
|
||||
|
Reference in New Issue
Block a user