Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5071b15afb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6bc9f4a680
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| catch { } | ||
| if (isStillSavedRevision && result.Count == count) | ||
| PPTThumbnailDiskCache.Save(presentationPath, presentationName, width, height, count, result); | ||
| PPTThumbnailDiskCache.Save(presentationPath, activePresentation.Name, width, height, count, result); |
There was a problem hiding this comment.
Keep the second cache write behind the saved-revision check
After exporting a deck with unsaved edits, this call runs regardless of isStillSavedRevision because the preceding if guards only the first Save; it can cache those previews under the existing file's size/mtime revision, so reopening the unchanged saved file may show edits that were never saved. It also bypasses the cache-enable setting. The fresh evidence in this revision is this added, unguarded second Save call; the same call appears in ROTPPTManager.
Useful? React with 👍 / 👎.
| var currentFile = new FileInfo(presentationPath); | ||
| isStillSavedRevision = canUseDiskCache && | ||
| Convert.ToInt32(activePresentation.Saved) != 0 && | ||
| PPTPresentationStorage.CreatePresentationId(presentationName, count, presentationPath) == presentationId && |
There was a problem hiding this comment.
Recheck the current presentation identity before caching
If the user performs Save As while slide exports are running, this comparison recomputes the ID from the original presentationName, count, and presentationPath captured before the loop, so it still matches presentationId even though the active presentation now points to a different file. The original file's size and timestamp can remain unchanged, allowing thumbnails from the Save-As deck to be cached under the original file's key; reopening the original can then show the wrong previews. The ROT manager has the same check.
Useful? React with 👍 / 👎.
| if (!Directory.Exists(directory)) | ||
| { | ||
| try { Directory.Move(tempDirectory, directory); } |
There was a problem hiding this comment.
Replace an invalid existing cache directory
If a revision directory contains a missing or malformed PNG, TryLoad treats it as a cache miss, but this branch refuses to move the freshly generated complete set because the destination directory still exists. The temporary set is then deleted, leaving every later request for that presentation, size, and revision to re-export the slides instead of repairing the cache. Remove or replace the invalid directory before publishing the new set.
Useful? React with 👍 / 👎.
Closes #791
Changes
<AutoSavedStrokesLocation>/Auto Saved - Presentations/<PPTInkManager document ID>/Thumbnails.PPTInkManagerso ink and thumbnails always resolve to the same document directory..icstkandPositionink data; organize cache entries by dimensions and saved-file revision.Validation