Files
vectorcraft/crates
dotCooCoo c2a4053a90 Library panels: Locate Library… is dimmed when the app has no file picker
A missing library's Locate Library… was enabled on a host whose file
service has no picker, and a click on it did nothing. It now uses the
notice action's disabled state: the button is dimmed, screen readers
report it as unavailable, Tab skips it and a click does nothing.

file_asks::can now also answers false when the file service can
neither pick paths nor pick browser files, so every control gated on it
(including Find in Folder… in Missing Fonts and Missing Links, Relink…,
the Links panel's Relink, Relink to Folder and Find in Folder,
Replace…, Replace Actions…, File Info, Find Font, Text Styles and Asset
Export) is dimmed or hidden on such a host as well.

The web shell installs its browser file service in the window's context
only, while app.host keeps the default service, which has no picker.
VectorcraftApp::files_host returns the window's host, else app.host, and
file_asks::can reads it, so the browser keeps its open dialogs. Graph
Data's Import Data…, which was dimmed in the browser, the Proof Setup
dialog's Save and the Variables panel's Export Data Sets… and Save
Variable Library… read it too, so in the browser the import works and
the saves hand their bytes to the browser instead of asking for a path.
The desktop app installs its own host in the window, so it is
unchanged.
2026-11-30 07:24:48 -08:00
..
2026-11-27 19:12:32 -08:00