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?
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.
(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.
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?
(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)?
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.
This could also be fixed by adding an empty header (footer) to the bottom of the menu, question is how it would look.
The bottom-most menu item for pinned-but-not-running apps is now "Show Panel Configuration", which effectively fixes the issue.