Enable/disable context menu commands depending on host's state.