minimize redundant autosaves#78
Open
AdrianGroty wants to merge 1 commit into
Open
Conversation
- DrawingSheet.__init__: adds self.autosaved=True (line 97-99) - DrawingSheet.setModified: flips autosaved=False (line 101-103) - Drawing.autosave: skips save when source.autosaved already True; sets True after save (line 319-324) - Drawing.reload: clears source.autosaved=True post-load to discard load-induced dirty flag (line 454) - last_autosave init: int → time.time so open-time anchors interval check (line 835) +claude
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
+claude
Current behavior is for drawings to autosave immediately on opening and again at every autosave interval, whether or not edits have been made. With a short interval and/or a session left open for a long time, the autosave dir can quickly become unwieldy, and any specific point in the history can be a needle in a haystack. These changes prevent autosave from firing until an edit has been made AND at least one autosave interval has elapsed since load or the last autosave.