Undo the last command.
(self)
| 62 | return success |
| 63 | |
| 64 | def undo_last_command(self): |
| 65 | """Undo the last command.""" |
| 66 | description = self.command_history.undo() |
| 67 | if description: |
| 68 | self.commandUndone.emit(description) |
| 69 | return True |
| 70 | return False |
| 71 | |
| 72 | def redo_last_command(self): |
| 73 | """Redo the last undone command.""" |