refactor(editor): streamline menu item separator handling in EditorManager

- Adjusted the order of method calls in BuildModernMenu to improve readability and maintainability.
- Moved the separator method call to follow the item addition for better logical flow.

Benefits:
- Enhances code clarity and organization within the menu building logic of the EditorManager.
This commit is contained in:
scawful
2025-10-14 09:43:54 -04:00
parent 01d3e46e87
commit f6c5ace099

View File

@@ -1317,9 +1317,8 @@ void EditorManager::BuildModernMenu() {
"Proposal Drawer", ICON_MD_PREVIEW,
[this]() { proposal_drawer_.Toggle(); }, "Ctrl+P")
#endif
menu_builder_.Separator()
.Item(
.Separator();
menu_builder_.Item(
"Card Browser", ICON_MD_DASHBOARD,
[this]() { show_card_browser_ = true; }, "Ctrl+Shift+B")
.Separator()