Reverted a change so that the visibility of the player will be set to none when a dialog is displayed.