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

Persist undo/redo history correctly across OpenShot sessions #2474

Merged
merged 5 commits into from
Dec 23, 2018

Conversation

jonoomph
Copy link
Member

Lots of fixes to history (undo/redo) persistence, to ultimately prevent HUGE OSP project files. The reason project files would get huge was due to a bug which saved "load" actions (which load an entire OSP project file) into the history. These actions contained a copy of the undo/redo history. So over time, loading a project multiple times, it would create a exponentially larger OSP project file, each containing the previous nested version. This will no longer happen thanks to this PR!

…ry is a huge data set of undo/redo actions). Also, do not save or load update actions of type "load". Also clear actionHistory when loading a new project. These changes should prevent the OSP project file from becoming HUGE. At most, 15 changes in the undo and redo history should only increase file size by 100k or less (which I think is a fair trade off).
@jonoomph jonoomph merged commit 33c0c21 into develop Dec 23, 2018
@jonoomph jonoomph deleted the persist-history-correctly branch December 23, 2018 21:48
@ferdnyc
Copy link
Contributor

ferdnyc commented Dec 24, 2018

Does this address the other cross-session history bug from #1923, the problem that absolute (transition) paths in the history data from AppImage sessions turn into crashers for future sessions, if that history is actually used? (Because the referenced paths are no longer mounted.)

@jonoomph
Copy link
Member Author

@ferdnyc Nope, that is not addressed. However, I am looking at that now. Thx!

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.

2 participants