Skip to content

Fix/clear orphaned views#37

Merged
flipbit merged 4 commits into
mainfrom
fix/clear-orphaned-views
Jun 22, 2026
Merged

Fix/clear orphaned views#37
flipbit merged 4 commits into
mainfrom
fix/clear-orphaned-views

Conversation

@flipbit

@flipbit flipbit commented Jun 22, 2026

Copy link
Copy Markdown
Owner
  • Fix an issue where notes are manually added to an image are not detected by the programatic API
  • Bump version to 2.0.0-beta.4

flipbit added 4 commits June 22, 2026 10:18
commitSave() in AnnotateEdit created a new AnnotateView but never
assigned it to note.view, so destroyViews() could not clean it up.
Additionally, destroyViews() only iterated the current notes array,
leaving orphans when the array was replaced externally before load().

Fixes both by assigning note.view after creation and clearing the
viewOverlay as a safety net in destroyViews().
@flipbit
flipbit merged commit 523937b into main Jun 22, 2026
3 checks passed
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.

1 participant