mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-27 19:56:51 -06:00
- A preview that a menu or script edits or saves while the window is open becomes a document of its own: Close keeps it and gives it its Untitled number. document.list and the control inspect mark the preview. - Close shows the previously active document again only if the preview was still active; a document opened meanwhile stays active. - Create refuses invalid fields with a status beside the buttons, keeping the window and the preview. When the settings are the previewed ones, the preview document becomes the new document; otherwise file.new makes it, and a failure puts the window back with the error. - The preview is rebuilt once the fields have stayed the same for 200 ms, and refused settings are not retried until they change. - No recovery discard for preview documents, which are never written. - The window's key is _previewedDoc, distinct from the interaction preview key, and ending the preview is a no-op without one.