mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Move a SystemTray test after tryinjg to create one.
This commit is contained in:
parent
1c890a3556
commit
4f9e6a7be2
1 changed files with 2 additions and 2 deletions
|
|
@ -563,8 +563,6 @@ void App::registerSharedToolTypes () {
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
void App::setTrayIcon () {
|
||||
if(!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
qInfo() << "System tray is not available";
|
||||
QQuickWindow *root = getMainWindow();
|
||||
QSystemTrayIcon *systemTrayIcon = new QSystemTrayIcon(mEngine);
|
||||
|
||||
|
|
@ -619,6 +617,8 @@ void App::setTrayIcon () {
|
|||
systemTrayIcon->setToolTip(APPLICATION_NAME);
|
||||
systemTrayIcon->show();
|
||||
mSystemTrayIcon = systemTrayIcon;
|
||||
if(!QSystemTrayIcon::isSystemTrayAvailable())
|
||||
qInfo() << "System tray is not available";
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue