Bug 482570 - Right clicking on taskbar allows user to change Panel Spacer " ☑️ Set flexible size " option even when NOT in Edit Mode
Summary: Right clicking on taskbar allows user to change Panel Spacer " ☑️ Set flexibl...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel Spacer widget (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-06 18:57 UTC by Moritz
Modified: 2024-08-23 23:42 UTC (History)
1 user (show)

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


Attachments
My taskbar in "Edit Mode" to highlight where the flexible Panel Spacers are located (1 + 2) (1.81 MB, image/png)
2024-03-06 18:57 UTC, Moritz
Details
Right clicking on my taskbar when NOT in Edit Mode (684.21 KB, image/png)
2024-03-06 18:58 UTC, Moritz
Details

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