Bug 483025

Summary: Toggling System Tray Entries from "Always Shown" to "Always hidden" makes them not open when clicked on in the expanded tray popup
Product: [Plasma] plasmashell Reporter: xdzzz <xdzzz320>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: dhruv8sh, materka, nate, plasma-bugs
Priority: NOR Keywords: qt6
Version: 6.0.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video of bug using notification applet as example

Description xdzzz 2024-03-09 19:43:35 UTC
Created attachment 166822 [details]
video of bug using notification applet as example

SUMMARY
In the system tray widget you add to a panel, the menu for an applet in the widget becomes no longer accessible if you first toggle it to "Always shown" then afterwards toggle it to "Always hidden"

STEPS TO REPRODUCE
1. Open system tray menu, go to "Entries" tab
2. Select an applet as "Always shown" => confirm applet menu opens properly
3. Repeat step 1
4. Select applet from step 2 as "Always hidden"

OBSERVED RESULT
Applet's menu is no longer accessible

EXPECTED RESULT
Applet's menu is always accessible, whether "Always shown" or "Always hidden". Toggling between the two should not affect the menu for appearing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics platform: Wayland
Comment 1 Nate Graham 2024-03-11 23:10:22 UTC
Can reproduce with all widgets tested.
Comment 2 dhruv8sh 2024-03-22 09:27:00 UTC
Similar problem at https://github.com/dhruv8sh/arch-update-checker/issues/11
Context: The applet expands when not in a tray but refuses expand when in the tray whether hidden or shown.

plasmashell errors when clicking any applet in the tray:
file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/PlasmoidItem.qml:60: TypeError: Property 'pressed' of object CompactRepresentation_QMLTYPE_293(0x5e9e729ecae0) is not a function.

It is possible it could be a problem with the stack.
Comment 3 dhruv8sh 2024-03-25 04:06:40 UTC
(In reply to dhruv8sh from comment #2)
> Similar problem at https://github.com/dhruv8sh/arch-update-checker/issues/11
> Context: The applet expands when not in a tray but refuses expand when in
> the tray whether hidden or shown.
> 
> plasmashell errors when clicking any applet in the tray:
> file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/
> contents/ui/items/PlasmoidItem.qml:60: TypeError: Property 'pressed' of
> object CompactRepresentation_QMLTYPE_293(0x5e9e729ecae0) is not a function.
> 
> It is possible it could be a problem with the stack.

This was linked to https://bugs.kde.org/show_bug.cgi?id=484429