mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Fix sub menus, allow recent items to be collapsed
This commit is contained in:
@@ -269,8 +269,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
// Draw telemetry subwindow
|
||||
ImGui::SetCursorPos((windowSize - subWindowSize) / 2);
|
||||
ImGuiExt::BeginSubWindow("hex.builtin.oobe.server_contact"_lang, subWindowSize, ImGuiChildFlags_AutoResizeY);
|
||||
{
|
||||
if (ImGuiExt::BeginSubWindow("hex.builtin.oobe.server_contact"_lang, nullptr, subWindowSize, ImGuiChildFlags_AutoResizeY)) {
|
||||
// Draw telemetry information
|
||||
auto yBegin = ImGui::GetCursorPosY();
|
||||
std::string message = "hex.builtin.oobe.server_contact.text"_lang;
|
||||
@@ -356,8 +355,9 @@ namespace hex::plugin::builtin {
|
||||
auto yEnd = ImGui::GetCursorPosY();
|
||||
subWindowSize = ImGui::GetWindowSize();
|
||||
subWindowSize.y = (yEnd - yBegin) + 35_scaled;
|
||||
|
||||
ImGuiExt::EndSubWindow();
|
||||
}
|
||||
ImGuiExt::EndSubWindow();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user