Merge pull request #1805 from ramox81/codex/block-dialog-additions

Block Definition dialog: preview, empty-block band, open in block editor
This commit is contained in:
Hakan Seven committed 2026-10-15 14:51:26 +03:00
commit cf6c50f2c0
30 files changed
+357 -13

No files matched your search

+8
View File
@@ -810,6 +810,14 @@ impl OpenCADStudio {
self.refresh_properties();
self.note_recent_block(&name);
self.refresh_block_palette();
// The Block Definition dialog asked to edit the new block.
if self
.block_definition_open_editor
.take()
.is_some_and(|wanted| wanted.eq_ignore_ascii_case(&name))
{
return Some(self.dispatch_command(&format!("BEDIT_OPEN:{name}")));
}
}
Err(err) => {
self.discard_last_undo_entry(i);