mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-24 07:08:07 +00:00
feat(src/app/App): disable tray icon system on Mac OS
This commit is contained in:
parent
4704c5d38c
commit
136a7c1a94
1 changed files with 9 additions and 5 deletions
|
|
@ -126,11 +126,15 @@ void App::initContentApp () {
|
|||
if (m_engine.rootObjects().isEmpty())
|
||||
qFatal("Unable to open main window.");
|
||||
|
||||
// Enable TrayIconSystem.
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
qWarning("System tray not found on this system.");
|
||||
else
|
||||
setTrayIcon();
|
||||
#ifndef __APPLE__
|
||||
|
||||
// Enable TrayIconSystem.
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
qWarning("System tray not found on this system.");
|
||||
else
|
||||
setTrayIcon();
|
||||
|
||||
#endif // ifndef __APPLE__
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue