From 53c7fd4d81cabe678e0c88f963a241c0a2376df2 Mon Sep 17 00:00:00 2001 From: Mitternacht822 Date: Thu, 7 Aug 2025 07:12:09 +0400 Subject: [PATCH] fix: android build (#1768) * added signal-slot connection between corecontroller and systemtraynofificationhandler updating websiteurl * cleared up the commented lines * fixed andorid includes for systemtraynotificationhandler --- client/core/controllers/coreController.cpp | 2 +- client/core/controllers/coreController.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"