Use QSystemTrayIcon instead of KStatusNotifierItem

KSNI doesn't support Windows and macOS and we don't need any of the features it provides over QSystemTrayIcon

Also remove some dead code
This commit is contained in:
Nicolas Fella
2021-01-31 23:16:25 +01:00
parent ab4db4dd3d
commit 92e00587f7
3 changed files with 16 additions and 44 deletions

View File

@@ -62,9 +62,8 @@ Controller::Controller(QObject *parent)
#ifndef Q_OS_ANDROID
TrayIcon *trayIcon = new TrayIcon(this);
trayIcon->show();
connect(trayIcon, &TrayIcon::showWindow, this, &Controller::showWindow);
trayIcon->setIconSource("org.kde.neochat");
trayIcon->setIsOnline(true);
#endif
QTimer::singleShot(0, this, [=] {