1
0
mirror of synced 2024-11-12 10:10:53 +01:00

fix: Menu bar being hidden by default in the web version

This commit is contained in:
WerWolv 2024-01-08 23:41:28 +01:00
parent 21d6c1326c
commit a35530f63b

View File

@ -527,15 +527,16 @@ namespace hex {
}
};
static u32 menuEndPos = 0;
if (menuEndPos < m_searchBarPosition) {
drawMenu();
menuEndPos = ImGui::GetCursorPosX();
} else {
if (ImGui::BeginMenu(ICON_VS_MENU)) {
if (m_lastStartFrameTime > 0) {
static u32 menuEndPos = 0;
if (menuEndPos < m_searchBarPosition) {
drawMenu();
ImGui::EndMenu();
menuEndPos = ImGui::GetCursorPosX();
} else {
if (ImGui::BeginMenu(ICON_VS_MENU)) {
drawMenu();
ImGui::EndMenu();
}
}
}