mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-13 01:17:11 -06:00
- Recognize the XDG document portal mount inside a Flatpak sandbox (`/run/flatpak/doc/`), so a changed extension reopens the dialog for the overwrite confirmation like the host mount does. - Give the portal SaveFile request a real cancellation path: the CancelToken is armed before the waiting thread starts and cancelled when the system dialog is given up (File > Open > Browse in WordCraft...). The request closes and the answer reads as a cancel, so a portal that stops answering cannot keep Save As stuck; a late cancel after the answer is ignored. - Map the cancellation error to a cancelled dialog instead of the rfd fallback. - Regression tests for the Flatpak mount, the CancelHandle arm/cancel/disarm, and the UI calling the host's cancel hook when the dialog is given up. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>