mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 04:33:43 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user