fix: Shortcuts displayed in main menu not matching actual shortcuts

This commit is contained in:
WerWolv
2026-03-09 11:52:08 +01:00
parent 6f83b050cd
commit d25c80c0a5

View File

@@ -381,7 +381,8 @@ namespace hex::plugin::builtin {
toolbarIndex toolbarIndex
] = menuItem; ] = menuItem;
createNestedMenu(unlocalizedNames | std::views::drop(1), icon.glyph.c_str(), shortcut, view, callback, enabledCallback, selectedCallback); Shortcut changedShortcut = ShortcutManager::getShortcutByName(unlocalizedNames, view);
createNestedMenu(unlocalizedNames | std::views::drop(1), icon.glyph.c_str(), changedShortcut, view, callback, enabledCallback, selectedCallback);
} }
} }