Properly hide or show the overlay depending on "Hide Overlay" setting.