Execute a command and add it to history.
(self, command)
| 55 | return None |
| 56 | |
| 57 | def execute_command(self, command): |
| 58 | """Execute a command and add it to history.""" |
| 59 | success = self.command_history.execute_command(command) |
| 60 | if success: |
| 61 | self.commandExecuted.emit(command.get_description()) |
| 62 | return success |
| 63 | |
| 64 | def undo_last_command(self): |
| 65 | """Undo the last command.""" |