Changed menu.js so that the context menu displays "Remove From Panel" if the app is already in the panel, and removes it when clicked.
Provided a remove from panel option on context menu if app already in…
Removed extraneous variables
Merge branch 'master' into removefrompanel
Thanks for the commits on this. However I find them overkill. This can be achieved by using the context menu on the panel launchers themselves, where it feels more natural.
Of course, the same could be said about the favorites... but we keep the remove there for now as we're not 100% happy with the favorites context menu and the way it shows up.
That's fair enough - I guess the main reason I wanted this in was because it allowed me to quickly remove something I'd added to the panel by accident, without leaving the menu. Also I can't see any utility in being able to add the same app to the panel several times.
Maybe the 'Add to Panel' option should be removed if the app is in the panel already?