From 25b4ee2efbe5057a7561df11539d6f7ffaf5802c Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 24 Aug 2025 16:25:52 +0200 Subject: [PATCH] Ifdef trayicon a bit more for android --- src/app/controller.cpp | 2 ++ src/app/controller.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/controller.cpp b/src/app/controller.cpp index 51c93f470..3ff0e692e 100644 --- a/src/app/controller.cpp +++ b/src/app/controller.cpp @@ -135,7 +135,9 @@ Controller::Controller(QObject *parent) #endif connect(QGuiApplication::instance(), &QCoreApplication::aboutToQuit, QGuiApplication::instance(), [this] { +#ifndef Q_OS_ANDROID delete m_trayIcon; +#endif NeoChatConfig::self()->save(); }); diff --git a/src/app/controller.h b/src/app/controller.h index 0938b0cbc..f600b4483 100644 --- a/src/app/controller.h +++ b/src/app/controller.h @@ -110,8 +110,9 @@ private: void initActiveConnection(NeoChatConnection *oldConnection, NeoChatConnection *newConnection); QPointer m_connection; +#ifndef Q_OS_ANDROID QPointer m_trayIcon; - +#endif QString m_endpoint; QStringList m_shownImages;