mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 12:21:08 +01:00
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.