mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* File open/save: set the path everywhere, Open Recent, show errors and import/export warnings File › Open, drag-and-drop onto the window and launch paths now share PhotocraftApp::open_file: the document is named after the file (not the full path), keeps its path so File › Save writes back, and goes to Open Recent. Failures are shown as errors (status bar + a non-blocking notice). Import/export warnings from photocraft-io are no longer thrown away: they show in the status bar and in a dismissable notice (native and web), and the control protocol returns them from app.open/app.save/file.open/file.save/ file.saveAs/file.saveACopy. .pcraft is in the Open and Save filters, and File › Save writes .pcraft documents in place. Co-Authored-By: Claude Opus 5.5 <[email protected]> * macOS: open files from Finder, Open With and the Dock (Apple events) Finder double-click, Open With, drops on the Dock icon and open -a deliver files as kAEOpenDocuments Apple events, not argv, and winit 0.30 ignores them. Register an NSAppleEventManager handler through the small fmv-macos-events crate (MIT OR Apache-2.0, 168 lines, audited, pinned =0.1.0; it keeps the Objective-C unsafe out of our forbid(unsafe_code) workspace) before the event loop starts, so both the launching event and later ones reach the UI as OsEvent::Open; the window is focused. The quit Apple event goes through the normal close path. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>