Conditional deactivate

I am sorry for being unable to use git.
This is a clean PR.
That prevent other plugins (like mine) to add a new action, like a GitHub icon.