fix: Views not being openable
This commit is contained in:
parent
a35530f63b
commit
bdee628360
@ -489,7 +489,8 @@ namespace hex::plugin::builtin {
|
|||||||
if (view->hasViewMenuItemEntry()) {
|
if (view->hasViewMenuItemEntry()) {
|
||||||
auto &state = view->getWindowOpenState();
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user