fix: Linking issues and menu bar not appearing sometimes

This commit is contained in:
WerWolv
2024-01-29 15:44:18 +01:00
parent 339541a56f
commit cecb8b8d31
5 changed files with 37 additions and 22 deletions

View File

@@ -258,13 +258,22 @@ namespace hex::plugin::builtin {
}
for (auto &[priority, menuItem] : ContentRegistry::Interface::impl::getMenuItems()) {
const auto &[unlocalizedNames, icon, shortcut, view, callback, enabledCallback, selectedCallack, toolbarIndex] = menuItem;
const auto &[
unlocalizedNames,
icon,
shortcut,
view,
callback,
enabledCallback,
selectedCallack,
toolbarIndex
] = menuItem;
createNestedMenu(unlocalizedNames, icon.glyph.c_str(), *shortcut, callback, enabledCallback, selectedCallack);
}
};
if (ImHexApi::System::getLastFrameTime() > 0) {
if (ImGui::GetTime() > 0.2F) {
static u32 menuEndPos = 0;
if (menuEndPos < s_searchBarPosition) {
drawMenu();