Bug 434879

Summary: If "keep open" feature is enabled, wrong icon is highlighted in system tray after cleaning history of Clipboard applet
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: System Tray widgetAssignee: Konrad Materka <materka>
Status: RESOLVED FIXED    
Severity: minor CC: materka, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2021-03-24 12:27:16 UTC
Created attachment 137025 [details]
screenshot

STEPS TO REPRODUCE
1. click on Clipboard applet in system tray
2. click on "Keep open" button in the upper right corner of Clipboard popup
3. click on "Clear history" button on top
4. if a dialog appears asking for confirming, click on "Yes" button

OBSERVED RESULT
clipboard history is cleared, popup of Clipboard applet remains open and wrong systray icon is highlithed with a blue line on top. In the attached screenshot the icon of night color applet is highlighted.

EXPECTED RESULT
after clipboard cleaning, icon of Clipboard applet should remain visible and highlithed in system tray until the popup of the Clipboard applet is closed.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 1 Nate Graham 2021-03-24 20:46:32 UTC
Can confirm. The line migrates to the next applet remaining after the clipboard icon disappears.
Comment 2 Bug Janitor Service 2021-03-27 19:30:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/747
Comment 3 Konrad Materka 2021-03-27 23:14:14 UTC
Git commit 5126f17ecf8aa61cf3702a420f51052a17b8a90f by Konrad Materka.
Committed on 27/03/2021 at 19:30.
Pushed by ngraham into branch 'master'.

[applets/systemtray] Fix highlight when applet changes state with Keep Open

Fix bug, when highlight is not correctly updated, when selected applet
changes state but "Keep Open" (pin) is enabled.
FIXED-IN 5.22.0

M  +23   -2    applets/systemtray/package/contents/ui/CurrentItemHighLight.qml

https://invent.kde.org/plasma/plasma-workspace/commit/5126f17ecf8aa61cf3702a420f51052a17b8a90f