Files
vectorcraft/crates
dotCooCoo 3a0bfba325 File dialogs: a replace confirmation runs under the file access of the request that asked
A file dialog's answer runs its continuation under the file-access
scope and automation flag of the request that opened the dialog. The
questions that follow a request did not keep them, and ran what OK
allows in the unconfined UI frame:

- the Replace question after a save picker names an existing file
  (file_asks::ask_replace);
- the question whether a save or export may replace the files it
  writes beside the one picked (confirm::ask_replace_files), also when
  a Background Save or Export asks it after the request has ended;
- a confirmation whose OK runs a command (confirm::ask), such as the
  question before a save loses data.

A save, export or open started by a request confined to its automation
roots could then reach files outside those roots once the person
answered OK, and it no longer ran as automation. Each question now
captures ScopeHandle::capture() and automation_asked() when it is
asked, and its OK runs under them, as a picker's answer does. A
background save or export captures them before it leaves the request.
2026-11-25 09:15:23 -08:00
..
2026-11-19 15:24:38 +07:00