Color Settings: keep script gates and background reads after a profile answer

- A scope narrowed to the confirming caller keeps the script gates of both,
  and reads are exempt from them only where both scopes exempt them.
- A file read off the UI thread does the rest of its read after its profile
  answer (linked files and type) off the UI thread too; an open a caller
  asked for by path still finishes before OK returns.
This commit is contained in:
dotCooCoo
2026-11-18 16:46:24 -08:00
parent 95ed13dd80
commit 6c5e10fd64
6 changed files with 136 additions and 28 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ impl Disk {
/// The gate for a command the script runs: the places it reads and writes now, and the files of
/// the open documents, `documents`.
pub(crate) fn gate(&self, documents: Vec<String>) -> crate::file_access::ScriptGate {
crate::file_access::ScriptGate { read: self.scope.clone(), write: self.writes.clone(), documents }
crate::file_access::ScriptGate { read: self.scope.clone(), write: self.writes.clone(), documents, also: None }
}
/// The files written since this was last asked, to name in the report.