forked from 1b-agent/opencadstudio-upstream
Add persistent live OpenCADStudio control
This commit is contained in:
1 parent
9d991d7feb
commit
28cc473062
22 files changed
+1764
-95
No files matched your search
@@ -537,13 +537,14 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
|
||||
if toks.len() > 1 && !wants_spaces {
|
||||
self.command_line.input.clear();
|
||||
if self.tabs[i].active_cmd.is_some() {
|
||||
let mut tasks = Vec::new();
|
||||
for tok in &toks {
|
||||
if self.tabs[i].active_cmd.is_none() {
|
||||
break;
|
||||
}
|
||||
self.feed_active_cmd(tok);
|
||||
tasks.push(self.feed_active_cmd(tok));
|
||||
}
|
||||
return Task::none();
|
||||
return Task::batch(tasks);
|
||||
}
|
||||
return self.run_command_line(&raw);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user