fix: One too many menu item being shown in the overflow menu

This commit is contained in:
WerWolv
2025-08-24 10:18:23 +02:00
parent 0ac09fc57b
commit f4cbdde8f6

View File

@@ -444,7 +444,7 @@ namespace hex::plugin::builtin {
if (ImGui::BeginMenu(ICON_VS_ELLIPSIS)) {
for (const auto &[priority, menuItem] : menuItems) {
ON_SCOPE_EXIT { count += 1; };
if (count < fittingItems)
if (count <= fittingItems)
continue;
if (!visibleMainMenus.contains(menuItem.unlocalizedName))
continue;