Fixes #64. Disable share button when no session is loaded or when share dialog is visible