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,16 +312,14 @@ namespace hex::plugin::builtin {
|
|||
}
|
||||
};
|
||||
|
||||
if (ImGui::GetTime() > 0.2F) {
|
||||
static u32 menuEndPos = 0;
|
||||
if (menuEndPos < s_searchBarPosition) {
|
||||
static u32 menuEndPos = 0;
|
||||
if (menuEndPos <= s_searchBarPosition || ImGui::GetTime() < 0.2F) {
|
||||
drawMenu();
|
||||
menuEndPos = ImGui::GetCursorPosX();
|
||||
} else {
|
||||
if (ImGui::BeginMenu(ICON_VS_MENU)) {
|
||||
drawMenu();
|
||||
menuEndPos = ImGui::GetCursorPosX();
|
||||
} else {
|
||||
if (ImGui::BeginMenu(ICON_VS_MENU)) {
|
||||
drawMenu();
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue