Bug 482570

Summary: Right clicking on taskbar allows user to change Panel Spacer " ☑️ Set flexible size " option even when NOT in Edit Mode
Product: [Plasma] plasmashell Reporter: Moritz <moritz1000>
Component: Panel Spacer widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: My taskbar in "Edit Mode" to highlight where the flexible Panel Spacers are located (1 + 2)
Right clicking on my taskbar when NOT in Edit Mode

Description Moritz 2024-03-06 18:57:44 UTC
Created attachment 166498 [details]
My taskbar in "Edit Mode" to highlight where the flexible Panel Spacers are located (1 + 2)

SUMMARY
***
I just upgraded to Plasma 6. 
I noticed that when I right click on my taskbar (on a Panel Spacer) I have the option to change " ☑️ Set flexible size ".
This is possible even though I am not in Edit Mode.
I don't think this makes any sense because it allows me to accidentally mess up my whole taskbar. 

The taskbar should only be editable in Edit Mode!

I'll add some screenshots for clarification. 
***


STEPS TO REPRODUCE
1. Have a taskbar with a Panel Spacer set to flexible. 
2. Make sure to not be in Edit Mode
3. Right click the taskbar, right where the Panel Spacer is

OBSERVED RESULT
I get a menu with the following options
1) " ☑️ Set flexible size "
____
2)  ➕ Add Widgets...
3)  Enter Edit Mode

EXPECTED RESULT
I only get a menu with the following options:
1)  ➕ Add Widgets...
2)  Enter Edit Mode

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Moritz 2024-03-06 18:58:17 UTC
Created attachment 166499 [details]
Right clicking on my taskbar when NOT in Edit Mode
Comment 2 Bug Janitor Service 2024-08-15 14:06:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2444
Comment 3 Niccolò Venerandi 2024-08-19 12:13:17 UTC
Git commit 874a909c5ea7b5ad412f83464eb145a1ff108192 by Niccolò Venerandi.
Committed on 19/08/2024 at 12:13.
Pushed by niccolove into branch 'master'.

Add switch to change spacer type directly in plasmoid popup

This way, we can remove the context menu item that should not
be visible in edit mode but that is otherwise undiscoverable.

M  +10   -0    containments/panel/contents/ui/ConfigOverlay.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/874a909c5ea7b5ad412f83464eb145a1ff108192