impr: Added icons to more context menus

This commit is contained in:
WerWolv
2024-12-31 00:45:47 +01:00
parent ff2b58e8a3
commit 67a9f314cc
7 changed files with 12 additions and 11 deletions

View File

@@ -317,7 +317,7 @@ namespace hex::plugin::builtin {
static void drawProviderContextMenu(prv::Provider *provider) {
for (const auto &menuEntry : provider->getMenuEntries()) {
if (ImGui::MenuItem(menuEntry.name.c_str())) {
if (ImGui::MenuItemEx(menuEntry.name.c_str(), menuEntry.icon)) {
menuEntry.callback();
}
}