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,
|
"Proposal Drawer", ICON_MD_PREVIEW,
|
||||||
[this]() { proposal_drawer_.Toggle(); }, "Ctrl+P")
|
[this]() { proposal_drawer_.Toggle(); }, "Ctrl+P")
|
||||||
#endif
|
#endif
|
||||||
|
.Separator();
|
||||||
menu_builder_.Separator()
|
menu_builder_.Item(
|
||||||
.Item(
|
|
||||||
"Card Browser", ICON_MD_DASHBOARD,
|
"Card Browser", ICON_MD_DASHBOARD,
|
||||||
[this]() { show_card_browser_ = true; }, "Ctrl+Shift+B")
|
[this]() { show_card_browser_ = true; }, "Ctrl+Shift+B")
|
||||||
.Separator()
|
.Separator()
|
||||||
|
|||||||
Reference in New Issue
Block a user