From 35aa08b27961dd7a5e81201fee45cdea2bf05dc3 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 11 Mar 2024 10:56:47 +0100 Subject: [PATCH] Remove manual window toggling for system tray icon KStatusNotifierItem automatically does this for us since we associate our window with it Doing it again causes the window to be toggled again, which means it won't be shown BUG: 479721 BUG: 482779 (cherry picked from commit 550dc43dc01e2f20acb63760b48b07de0b9efec5) --- src/trayicon_sni.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/trayicon_sni.cpp b/src/trayicon_sni.cpp index 149b98f17..7c188bb63 100644 --- a/src/trayicon_sni.cpp +++ b/src/trayicon_sni.cpp @@ -11,10 +11,6 @@ TrayIcon::TrayIcon(QObject *parent) { setCategory(KStatusNotifierItem::ItemCategory::Communications); setIconByName(QStringLiteral("org.kde.neochat.tray")); - connect(this, &KStatusNotifierItem::activateRequested, this, [this] { - KWindowSystem::setCurrentXdgActivationToken(providedToken()); - WindowController::instance().toggleWindow(); - }); connect(&WindowController::instance(), &WindowController::windowChanged, this, [this] { setAssociatedWindow(WindowController::instance().window());