Replace hardcoded separator with constexpr variable in menu drawing logic
This commit is contained in:
@@ -374,7 +374,7 @@ void DrawMenu(Menu& menu) {
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
} else if (each_item.name == "-") {
|
||||
} else if (each_item.name == kSeparator) {
|
||||
ImGui::Separator();
|
||||
} else {
|
||||
if (ImGui::MenuItem(each_item.name.c_str(),
|
||||
|
||||
Reference in New Issue
Block a user