Merge pull request #17117 from bernt-matthias/fix/tool_panel_dups_in_section

[23.1] Remove duplicates when copying sections for tool panel view
This commit is contained in:
Marius van den Beek
2024-01-11 09:56:19 +01:00
committed by GitHub
+1 -1
View File
@@ -105,7 +105,7 @@ class StaticToolPanelView(ToolPanelView):
f"Failed to find matching section for (id, name) = ({section_def.id}, {section_def.name})"
)
continue
section = closest_section.copy()
section = closest_section.copy(merge_tools=True)
if section_def.id is not None:
section.id = section_def.id
if section_def.name is not None: