mirror of https://github.com/WerWolv/ImHex.git
fix: Main menu not appearing for the first 200ms
This commit is contained in:
parent
74d59705ad
commit
ca35c90cbb
|
@ -312,9 +312,8 @@ namespace hex::plugin::builtin {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (ImGui::GetTime() > 0.2F) {
|
|
||||||
static u32 menuEndPos = 0;
|
static u32 menuEndPos = 0;
|
||||||
if (menuEndPos < s_searchBarPosition) {
|
if (menuEndPos <= s_searchBarPosition || ImGui::GetTime() < 0.2F) {
|
||||||
drawMenu();
|
drawMenu();
|
||||||
menuEndPos = ImGui::GetCursorPosX();
|
menuEndPos = ImGui::GetCursorPosX();
|
||||||
} else {
|
} else {
|
||||||
|
@ -323,7 +322,6 @@ namespace hex::plugin::builtin {
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
drawTitleBar();
|
drawTitleBar();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue