fix: File -> Open Others... menu not working correctly

This commit is contained in:
WerWolv 2023-03-28 10:13:41 +02:00
parent 8930adf532
commit 28b7b4b7f1
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ namespace hex::plugin::builtin {
}, noRunningTasks);
/* Open Other */
ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.file", "hex.builtin.menu.file.open_other"}, 1150, Shortcut::None, [] {
ContentRegistry::Interface::addMenuItemSubMenu({ "hex.builtin.menu.file", "hex.builtin.menu.file.open_other"}, 1150, [] {
for (const auto &unlocalizedProviderName : ContentRegistry::Provider::impl::getEntries()) {
if (ImGui::MenuItem(LangEntry(unlocalizedProviderName)))
ImHexApi::Provider::createProvider(unlocalizedProviderName);