mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
ui.libraryPanel.locate decided whether a panel's library was missing through missing_file, which answers only for a persistent panel. A command that turns Persistent off leaves the panel open on its missing library until the next drawn frame closes it, and while the window is hidden the app draws no frame between control requests. Locate Library… on that panel answered "isn't missing its library" and read no file. The check now asks whether the panel's library can be found, the lookup the tab label and the per-frame tidy use. A panel whose library is there is still refused, persistent or not. window.swatchLibrary and window.graphicStyleLibrary had the same check: given the library id of such a panel, they answered "no library". They now bring the open panel forward and answer its file's name with count 0; the panel still closes at the next tidy. Docs: docs/mcp.md (ui.libraryPanel.locate, window.swatchLibrary).