Bug 462119 - Empty menu in Panels and Desktops Management when there are no other screens
Summary: Empty menu in Panels and Desktops Management when there are no other screens
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: "Manage Desktop and Panels" window (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-22 10:52 UTC by Nico
Modified: 2024-08-16 19:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:


Attachments
Screenshot (483.61 KB, image/png)
2022-11-22 10:52 UTC, Nico
Details
Bug in Plasma 6 (989.34 KB, image/png)
2023-12-11 15:14 UTC, Nico
Details

Note You need to log in before you can comment on or make changes to this bug.
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