1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Views not being openable

This commit is contained in:
WerWolv 2024-01-09 00:24:17 +01:00
parent a35530f63b
commit bdee628360

View File

@ -489,7 +489,8 @@ namespace hex::plugin::builtin {
if (view->hasViewMenuItemEntry()) {
auto &state = view->getWindowOpenState();
ImGui::MenuItemEx(Lang(view->getUnlocalizedName()), view->getIcon(), "", state, ImHexApi::Provider::isValid() && !LayoutManager::isLayoutLocked());
if (ImGui::MenuItemEx(Lang(view->getUnlocalizedName()), view->getIcon(), "", state, ImHexApi::Provider::isValid() && !LayoutManager::isLayoutLocked()))
state = !state;
}
}