3
6ßL]™  ã               @   s    d dl mZ G dd„ deƒZdS )é   )ÚAbstractCommandStackActionc               @   s    e Zd ZdZdd„ Zdd„ ZdS )Ú
RedoActionzS An action that redos the last command undone of the active command
    stack.
    c             C   s   | j jƒ  dS )z Perform the action. N)Úundo_managerZredo)ÚselfÚevent© r   úF/tmp/pip-install-5sebvq2j/apptools/apptools/undo/action/redo_action.pyÚperform   s    zRedoAction.performc             C   s0   | j j}|rd| }d| _n
d}d| _|| _dS )z! Update the state of the action. z&Redo Tz&RedoFN)r   Z	redo_nameZenabledÚname)r   r
   r   r   r   Ú_update_action'   s    zRedoAction._update_actionN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r      s   	r   N)Zabstract_command_stack_actionr   r   r   r   r   r   Ú<module>   s   