ATTACH <file>: start the placement within the same command

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-09-23 16:22:17 +03:00
1 parent 498a97df0f
commit a845e45100
1 file changed
+3 -1
+3 -1
View File
@@ -23,7 +23,9 @@ impl OpenCADStudio {
("ATTACH", true) => Some(Task::done(Message::AttachPick)),
("XATTACH", true) => Some(Task::done(Message::XAttachPick)),
// A file named on the command line skips the picker.
("ATTACH", false) => Some(Task::done(Message::AttachPickResult(Ok(
// Handled at once, so the placement it starts belongs to this
// command line (automation included).
("ATTACH", false) => Some(self.update(Message::AttachPickResult(Ok(
std::path::PathBuf::from(rest.trim_matches('"')),
)))),
("XATTACH", false) => {