mirror of
https://github.com/storytold/cadcraft.git
synced 2026-10-24 10:56:51 -06:00
On wasm, saving skipped the file write but still marked the drawing saved, renamed its tab and reported success, so nothing reached the user. Saving now hands the bytes to a host delivery hook (`file::set_deliver`); the web app installs a small web-sys download helper (Blob + object URL + temporary <a download>), reusable for other files such as plots. Without the hook, or when the download can't be started, save errors and the drawing stays dirty. A started download counts as saved and keeps the name for later QSAVEs. The web app's Save/Save As (menu, close prompt) download under the drawing's name, as there is no file picker in the browser. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>