Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix 3484: hide the share toggle button if no service is enabled #3492
Hides the "Share" toolbar entry completely if all the share services are disabled.
I'm not really happy with the big "if" block, but I'd say it'd be overdoing it to change it without having a more modulare sharing system (e.g. be able to add/remove supported services). The list is hardcoded in the template, it can be hardcoded in the condition for it.