fix: Try to make menu bar always appear
This commit is contained in:
parent
61fd327aa1
commit
daf74347a3
@ -313,9 +313,12 @@ namespace hex::plugin::builtin {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static u32 menuEndPos = 0;
|
static u32 menuEndPos = 0;
|
||||||
if (menuEndPos <= s_searchBarPosition || ImGui::GetTime() < 0.2F) {
|
if (menuEndPos <= s_searchBarPosition) {
|
||||||
drawMenu();
|
drawMenu();
|
||||||
menuEndPos = ImGui::GetCursorPosX();
|
|
||||||
|
// Only initialize the menu end position if the language is already loaded
|
||||||
|
if (!LocalizationManager::getSelectedLanguage().empty())
|
||||||
|
menuEndPos = ImGui::GetCursorPosX();
|
||||||
} else {
|
} else {
|
||||||
if (ImGui::BeginMenu(ICON_VS_MENU)) {
|
if (ImGui::BeginMenu(ICON_VS_MENU)) {
|
||||||
drawMenu();
|
drawMenu();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user