mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Main menu item overflow not showing all menus when some are hidden
This commit is contained in:
@@ -472,12 +472,13 @@ namespace hex::plugin::builtin {
|
||||
u32 count = 0;
|
||||
if (ImGui::BeginMenu(ICON_VS_ELLIPSIS)) {
|
||||
for (const auto &[priority, menuItem] : menuItems) {
|
||||
ON_SCOPE_EXIT { count += 1; };
|
||||
if (count <= fittingItems)
|
||||
continue;
|
||||
if (!visibleMainMenus.contains(menuItem.unlocalizedName))
|
||||
continue;
|
||||
|
||||
ON_SCOPE_EXIT { count += 1; };
|
||||
if (count < fittingItems)
|
||||
continue;
|
||||
|
||||
defineMenu(menuItem.unlocalizedName);
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
|
||||
Reference in New Issue
Block a user