Ifdef trayicon a bit more for android

This commit is contained in:
Tobias Fella
2025-08-24 16:25:52 +02:00
parent e7f6adaa01
commit 25b4ee2efb
2 changed files with 4 additions and 1 deletions

View File

@@ -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();
});

View File

@@ -110,8 +110,9 @@ private:
void initActiveConnection(NeoChatConnection *oldConnection, NeoChatConnection *newConnection);
QPointer<NeoChatConnection> m_connection;
#ifndef Q_OS_ANDROID
QPointer<TrayIcon> m_trayIcon;
#endif
QString m_endpoint;
QStringList m_shownImages;