Bug 438351

Summary: An empty header is shown when widget is placed on the panel
Product: [Plasma] plasmashell Reporter: Riccardo Robecchi <sephiroth_pk>
Component: Disks & Devices widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 5.22.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.22.1
Sentry Crash Report:
Attachments: Screenshot of the widget

Description Riccardo Robecchi 2021-06-09 18:11:14 UTC
Created attachment 139158 [details]
Screenshot of the widget

SUMMARY
When placing the widget directly on the panel, there is a completely empty header that seemingly serves no purpose.

STEPS TO REPRODUCE
1. Place widget on the panel
2. Click on widget

OBSERVED RESULT
There is an empty header.

EXPECTED RESULT
There is no header (or at least not an empty one!).

SOFTWARE/OS VERSIONS
Linux: KDE neon
KDE Plasma Version: 5.22
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-06-09 22:39:09 UTC
Can reproduce.
Comment 2 Nate Graham 2021-06-14 22:18:59 UTC
Git commit 11a48a7a22547f0d2340c7be644f1bb1a72c3d53 by Nate Graham.
Committed on 14/06/2021 at 22:17.
Pushed by ngraham into branch 'master'.

[applets/devicenotifier] Don't show empty header most of the time

This header needs to be shown only when not in the System Tray and also
when there are multiple  mounted removable devices. That's the only
circumstance under which it actually has anything in it.
FIXED-IN: 5.22.1

M  +1    -1    applets/devicenotifier/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/commit/11a48a7a22547f0d2340c7be644f1bb1a72c3d53
Comment 3 Nate Graham 2021-06-14 22:19:37 UTC
Git commit 7cffd42b480d5a1dd43703a797104f2dddb567ca by Nate Graham.
Committed on 14/06/2021 at 22:19.
Pushed by ngraham into branch 'Plasma/5.22'.

[applets/devicenotifier] Don't show empty header most of the time

This header needs to be shown only when not in the System Tray and also
when there are multiple  mounted removable devices. That's the only
circumstance under which it actually has anything in it.
FIXED-IN: 5.22.1
(cherry picked from commit 11a48a7a22547f0d2340c7be644f1bb1a72c3d53)

M  +1    -1    applets/devicenotifier/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/commit/7cffd42b480d5a1dd43703a797104f2dddb567ca