diff --git a/client/core/controllers/coreController.cpp b/client/core/controllers/coreController.cpp index de14d0c9a..3d657c5aa 100644 --- a/client/core/controllers/coreController.cpp +++ b/client/core/controllers/coreController.cpp @@ -245,10 +245,10 @@ void CoreController::initNotificationHandler() connect(m_notificationHandler.get(), &NotificationHandler::disconnectRequested, m_connectionController.get(), &ConnectionController::closeConnection); connect(this, &CoreController::translationsUpdated, m_notificationHandler.get(), &NotificationHandler::onTranslationsUpdated); -#endif auto* trayHandler = qobject_cast(m_notificationHandler.get()); connect(this, &CoreController::websiteUrlChanged, trayHandler, &SystemTrayNotificationHandler::updateWebsiteUrl); +#endif } void CoreController::updateTranslator(const QLocale &locale) diff --git a/client/core/controllers/coreController.h b/client/core/controllers/coreController.h index 2b18dca18..1fe7cea7c 100644 --- a/client/core/controllers/coreController.h +++ b/client/core/controllers/coreController.h @@ -5,7 +5,9 @@ #include #include -#include "ui/systemtray_notificationhandler.h" +#ifndef Q_OS_ANDROID + #include "ui/systemtray_notificationhandler.h" +#endif #include "ui/controllers/api/apiConfigsController.h" #include "ui/controllers/api/apiSettingsController.h"