Commit 136a7c1a authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/app/App): disable tray icon system on Mac OS

parent 4704c5d3
...@@ -126,11 +126,15 @@ void App::initContentApp () { ...@@ -126,11 +126,15 @@ void App::initContentApp () {
if (m_engine.rootObjects().isEmpty()) if (m_engine.rootObjects().isEmpty())
qFatal("Unable to open main window."); qFatal("Unable to open main window.");
// Enable TrayIconSystem. #ifndef __APPLE__
if (!QSystemTrayIcon::isSystemTrayAvailable())
qWarning("System tray not found on this system."); // Enable TrayIconSystem.
else if (!QSystemTrayIcon::isSystemTrayAvailable())
setTrayIcon(); qWarning("System tray not found on this system.");
else
setTrayIcon();
#endif // ifndef __APPLE__
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment