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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user