mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
Merge main into feat/scripts-api-d3-layers-artboards
This commit is contained in:
commit
24bd70fa08
193 files changed
+6790
-1849
No files matched your search
@@ -2650,7 +2650,15 @@ impl Session {
|
||||
o.insert("unhandledRejectionCount".into(), json!(job.realm.unhandled_rejection_count()));
|
||||
}
|
||||
close_run(self, host, &mut report, console::Ending::Finished);
|
||||
let tool = host.dom.chosen_tool();
|
||||
self.end_job(job, false);
|
||||
// The tool `app.selectTool` chose last becomes the current tool, as a choice on the
|
||||
// toolbar makes it; the run's changes are kept when the tool cannot be chosen.
|
||||
if let Some(id) = tool
|
||||
&& let Err(e) = self.select_tool(id, self.last_view)
|
||||
{
|
||||
report["toolError"] = json!(e.to_string());
|
||||
}
|
||||
self.script_report = Some(report.clone());
|
||||
Ok(report)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user