Repository navigation
Fix #925: linked files changed in another app update when the window comes back - #931
Merged
Merged
Conversation
…comes back Preferences › File Handling › Update Links only acted when a document opened, so a linked image edited in another app while VectorCraft stayed open kept its old pixels until Update Link in the Links panel, even with Automatically chosen. When the window comes back to the front, the active document's links are now checked. With Automatically, changed files are read again; with Ask When Modified, they are offered for update, once per change of a file (keyed by path, size and modification time, since two saves can share a time); with Manually, the Links panel shows them as modified. Nothing is asked while a dialog is open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #925.
Preferences › File Handling › Update Links only acted when a document opened. A linked image edited in another app while VectorCraft stayed open kept its old pixels until Update Link in the Links panel, even with Automatically chosen.
Now, when the window comes back to the front, the active document's links are checked (
links.check):links.update).Nothing is asked while a dialog is open. The check uses the file's size and modification time first and reads the file only when they differ, so coming back to the window costs a few
statcalls. Docs:docs/control-protocol.md,docs/mcp.md; ROADMAP updated.Tested:
cargo xtask ci(all 7 steps).a_link_changed_in_the_background_follows_update_links_on_focus: the window-focus event requests the check; Ask When Modified asks once per change and again for a new one; Automatically updates without asking; Manually leaves the link modified.🤖 Generated with Claude Code