| Summary: | Middle-click Bluetooth icon in System Tray Does Not Toggle Bluetooth State if tray icon is set to Always Shown | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | dream <dreamsyntax> |
| Component: | Bluetooth widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdedev, materka, nate |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 6.3.90 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/aa0447867cebba702f6b50e5545302df4e6cd9dc | Version Fixed/Implemented In: | 6.4.0 |
| Sentry Crash Report: | |||
|
Description
dream
2025-05-27 18:20:37 UTC
This is working fine for me with those steps, and the code here hasn't changed appreciably between 6.3.5 and 6.3.90. Does it only happen when you set the visibility to "Always shown", or does it ever happen with the default visibility condition? Can you run `journalctl -f` in a terminal window, reproduce the issue, and then see if anything was printed to the terminal window? If so, please paste it here. Thanks! > Does it only happen when you set the visibility to "Always shown", or does > it ever happen with the default visibility condition? I have reproduced it on two separate systems with totally different hardware. When set to "Shown when relevant" and after rebooting once, it functions properly. If I don't reboot I get the same error after changing it. > Can you run `journalctl -f` in a terminal window, reproduce the issue, and > then see if anything was printed to the terminal window? If so, please paste > it here. Thanks! Yes, when the issue occurs this output is logged ``` May 27 11:32:05 user plasmashell[1368]: qt.qml.signalhandler: Property 'onPressed' of object QQuickMouseArea_QML_210(0x57babf9b60d0) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal. May 27 11:32:05 user plasmashell[1368]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/applet/DefaultCompactRepresentation.qml:73: TypeError: Value is undefined and could not be converted to an object ``` Additional Info: I did notice on my second system sometimes it worked properly even in 'Always shown' state. However switching it to 'Shown when relevant', clicking Apply, then switching it back it 'Always shown' causes the same issue and same log I posted above. I can reproduce on git-master on Solus If Bluetooth is not set to Always Shown, middle click enables and disables normally If it's set to Always Show, middle click does not affect the enabled state I get the same output written to the journal May 28 14:31:26 tlc-xps17-solus plasmashell[16406]: qt.qml.signalhandler: Property 'onPressed' of object QQuickMouseArea_QML_244(0x564f764672f0) is a signal handler. You should not call it directly. Make it a proper function and call that or emit the signal. May 28 14:31:26 tlc-xps17-solus plasmashell[16406]: file:///home/tracey/kde/usr/share/plasma/shells/org.kde.plasma.desktop/contents/applet/DefaultCompactRepresentation.qml:73: TypeError: Value is undefined and could not be converted to an object A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3031 Git commit 246aae4f191ba65accd6e59f8192b48be5eb7aa3 by Niccolò Venerandi. Committed on 29/05/2025 at 10:00. Pushed by niccolove into branch 'master'. Use Plasmoid attached property directly in DefaultCompactRepresentation Since `Plasmoid` is the same as `defaultCompactRepresentation.plasmoidItem.Plasmoid`, we prefer to use the former. This also works around some specific scenarios where the latter might be undefined, see bug report for reference. M +1 -1 desktoppackage/contents/applet/DefaultCompactRepresentation.qml https://invent.kde.org/plasma/plasma-desktop/-/commit/246aae4f191ba65accd6e59f8192b48be5eb7aa3 Git commit aa0447867cebba702f6b50e5545302df4e6cd9dc by Niccolò Venerandi. Committed on 29/05/2025 at 10:00. Pushed by niccolove into branch 'Plasma/6.4'. Use Plasmoid attached property directly in DefaultCompactRepresentation Since `Plasmoid` is the same as `defaultCompactRepresentation.plasmoidItem.Plasmoid`, we prefer to use the former. This also works around some specific scenarios where the latter might be undefined, see bug report for reference. (cherry picked from commit 246aae4f191ba65accd6e59f8192b48be5eb7aa3) Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com> M +1 -1 desktoppackage/contents/applet/DefaultCompactRepresentation.qml https://invent.kde.org/plasma/plasma-desktop/-/commit/aa0447867cebba702f6b50e5545302df4e6cd9dc |