def _recorder_changed_for_engine(self, recorder):
        record_action = None
        for action in self.actions:
            if hasattr(action, 'tooltip') and \
               action.tooltip.endswith('recording'):
                record_action = action
                break

        if record_action is not None:
            if recorder is not None:
                record_action.checked = True
            else:
                record_action.checked = False


### EOF ######################################################################
Called when the recorder trait on the engine trait of this
dataset/ETHPy150Open enthought/mayavi/mayavi/core/ui/engine_view.py/EngineView._recorder_changed_for_engine