forked from OpenShot/openshot-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist undo/redo history correctly across OpenShot sessions (OpenSho…
…t#2474) * Updating default history limit to 15 items (for new users) * Remove "discard history" logic, since we now want to persist it between sessions * Correctly remove "history" attribute from undo/redo data (since history 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). * Do not clear redo history if "ignore_history" is true * Only clear redo history when a non-history update is performed
- Loading branch information
Showing
3 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters