Bug 462119

Summary: Empty menu in Panels and Desktops Management when there are no other screens
Product: [Plasma] plasmashell Reporter: Nico <nico>
Component: "Manage Desktop and Panels" windowAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: ahiemstra, guimarcalsilva, nate, notmart
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: Screenshot
Bug in Plasma 6

Description Nico 2022-11-22 10:52:38 UTC
Created attachment 153937 [details]
Screenshot

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Have 1 screen connected (I used a VM)
2. Add an empty panel so that you have multiple ones
3. Enter edit mode
4. Manage desktops and panels.
5. Click the hamburger icon on the screen

OBSERVED RESULT
Shows an empty menu

EXPECTED RESULT
Should probably not show that button in this scenario

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Comment 1 Arjen Hiemstra 2023-12-11 09:43:42 UTC
I cannot reproduce this with on the Plasma 6 beta. Can you check if this still happens with Plasma 6?
Comment 2 Nate Graham 2023-12-11 15:10:58 UTC
Also cannot reproduce in Plasma 6, so it seems like this is fixed now!
Comment 3 Nico 2023-12-11 15:14:43 UTC
Created attachment 164089 [details]
Bug in Plasma 6

Still happens for me on Plasma 6. Normally there would be a menu with “Swap with Desktop on Monitor XY” but it's just an empty menu.
Comment 4 Nate Graham 2023-12-11 22:13:14 UTC
Ahh you need to have no other screens--either active or inactive.
Comment 5 Bug Janitor Service 2024-08-15 17:20:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2445
Comment 6 Niccolò Venerandi 2024-08-16 14:52:26 UTC
Git commit 9d2ef612953e460e672359004e7fa636e93a4b09 by Niccolò Venerandi.
Committed on 16/08/2024 at 14:43.
Pushed by niccolove into branch 'master'.

Only show "Manage desktop and panels…" context menu if it has any item in it

M  +13   -2    desktoppackage/contents/configuration/shellcontainmentconfiguration/Delegate.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9d2ef612953e460e672359004e7fa636e93a4b09