Gallery: don't re-show sharing dropdown when clicking the share button

fixes #574