Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic undo/redo functionality #2

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

arch1t3cht
Copy link
Collaborator

This works by simply keeping backups the entire relevant state of the Wobbly project after each action and rolling back to such states on undo/redo. This is feasible since Wobbly's internal state is not very memory-intensive.

A drawback is that all list or table models have to be repopulated from scratch, so selections in dialogs are cleared on every undo/redo. This could be improved later on by saving the UI state before a rollback and restoring it after it is completed.

Fixes dubhater#15 .

This works by simply keeping backups the entire relevant state of the
Wobbly project after each action and rolling back to such states on
undo/redo. This is feasible since Wobbly's internal state is not very
memory-intensive.

A drawback is that all list or table models have to be repopulated from
scratch, so selections in dialogs are cleared on every undo/redo. This
could be improved later on by saving the UI state before a rollback and
restoring it after it is completed.

Fixes dubhater#15 .
@Setsugennoao Setsugennoao merged commit 11ad707 into Jaded-Encoding-Thaumaturgy:master Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement undo support
2 participants