mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: One too many menu item being shown in the overflow menu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user