From 28b7b4b7f112b1c6cd239872fcc07e1fb6130ac8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 28 Mar 2023 10:13:41 +0200 Subject: [PATCH] fix: File -> Open Others... menu not working correctly --- plugins/builtin/source/content/main_menu_items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index f6840df23..74da4fa11 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -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);