diff --git a/src/app/command_driver.rs b/src/app/command_driver.rs index a56bbc601..605f7081d 100644 --- a/src/app/command_driver.rs +++ b/src/app/command_driver.rs @@ -396,6 +396,10 @@ impl OpenCADStudio { &mut self.tabs[i].scene, &path, ); + // Resolving the xref merged its layer / linetype tables + // into the document — mirror them into the Layers panel + // and ribbon dropdowns now, not on the next reopen (#407). + self.refresh_layer_panel(); } // Record where this draw ended so ARC_CONT can continue from it // (before `entity` is moved into commit_entity). diff --git a/src/app/commands/blocks.rs b/src/app/commands/blocks.rs index f7e871ac9..0abc2e227 100644 --- a/src/app/commands/blocks.rs +++ b/src/app/commands/blocks.rs @@ -540,6 +540,10 @@ impl OpenCADStudio { self.tabs[i].scene.populate_hatches_from_document(); self.tabs[i].scene.populate_images_from_document(); self.tabs[i].scene.populate_meshes_from_document(); + // The reload may have merged new xref layers / + // linetypes — mirror them into the Layers panel and + // ribbon dropdowns (#407). + self.refresh_layer_panel(); } } else { self.command_line