1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

macOS: system tray behaviour

Do not open/close Jami on click on the Jami system tray icon.
Click on Jami system tray icon trigger context menu with options
to show Jami and to close Jami.

Change-Id: I2230cc958d23b6aff245a6eca6e7d0776f6a1687
This commit is contained in:
kkostiuk 2022-03-22 15:58:53 -04:00
parent 3ac51f325a
commit 7ed3ec51e9

View file

@ -374,7 +374,7 @@ MainApplication::initSystray()
if (reason != QSystemTrayIcon::ActivationReason::Context) {
#ifdef Q_OS_WINDOWS
restoreApp();
#else
#elif !defined(Q_OS_MACOS)
QWindow* window = focusWindow();
if (window)
window->close();