Bug 411606

Summary: It's too easy to accidentally un-pin non-running apps with a bottom panel
Product: [Plasma] plasmashell Reporter: Lucia Mrenica <lucia.mrenica>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: lucia.mrenica, nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.1.0
Sentry Crash Report:

Description Lucia Mrenica 2019-09-05 07:43:55 UTC
SUMMARY
Very often I right-click on pinned apps (like browsers) to launch things like "private window", but sometimes I accidentally click on the unpin action (and the app gets unpinned imediately). I feel like there should be a confirmation dialog for an action like this, or maybe a separator?
Comment 1 Nate Graham 2019-09-06 20:29:12 UTC
In general, confirmation dialogs for user-initiated actions are annoying and counterproductive because people become accustomed to clicking through them without reading.

What we could maybe do instead is show a notification with an undo button in it, like the one that appears when you remove a widget.
Comment 2 Lucia Mrenica 2019-09-07 07:13:51 UTC
(In reply to Nate Graham from comment #1)
> What we could maybe do instead is show a notification with an undo button in
> it, like the one that appears when you remove a widget.

Yes, that is also a good idea.
Comment 3 Nate Graham 2020-07-12 04:15:04 UTC
The order of the menu items has been moved around and each logical section now has un-clickable headers, so the "Unpin" action is a lot farther away and hopefully it's now a lot harder to accidentally un-pin an app, which would would render this idea unnecessary. Can you confirm?
Comment 4 Lucia Mrenica 2020-07-12 19:11:59 UTC
(In reply to Nate Graham from comment #3)
> the "Unpin" action is a lot farther away

I am looking at today's kde neon unstable and the unpin action is still at the bottom of the menu which is literally the closest to an accidental click it could be. Were there any changes made since then (today)?
Comment 5 Nate Graham 2020-07-13 21:39:46 UTC
Oh I see the problem now. It's that "Unpin from task manager" is the very bottom-most item in the context menu for un-launched apps, which means it's the closest item to the cursor when you open the menu with a (default) bottom panel. So I can see how that makes it easy to click, yeah.

For similar reasons, we've conditionally re-arranged menu items in the panel toolbox pop-up menus. However doing the same thing is more challenging. The "Actions" section in which that menu item lives often has no other items in it for un-launched apps, so if we move the menu item around within its section, that may not be enough. We could move the "Actions" section itself up to the top, but then the bottom-most menu item in the whole menu would be "Forget Recent Files" which is even more destructive because there's no easy way to undo it. So that doesn't seem like a great option either.

It seems like we would have to both move the Actions section up to the top, and also move the "Forget Recent Files" to the top of its section, rather than the bottom. This could work. I'll see what I can do.
Comment 6 Lucia Mrenica 2020-10-19 09:18:44 UTC
This could also be fixed by adding an empty header (footer) to the bottom of the menu, question is how it would look.
Comment 7 Nate Graham 2024-08-16 04:37:59 UTC
The bottom-most menu item for pinned-but-not-running apps is now "Show Panel Configuration", which effectively fixes the issue.