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:
@@ -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, [=] {
|
||||
|
||||
Reference in New Issue
Block a user