Fix stub log memory leaking if imgui rendering is disabled

This commit is contained in:
PJB3005
2026-03-29 18:21:27 +02:00
parent 2711229946
commit 4091e3d155
3 changed files with 15 additions and 4 deletions
+3
View File
@@ -174,6 +174,7 @@ namespace dusk {
void ImGuiConsole::draw() {
if (CheckMenuViewToggle(ImGuiKey_F1, m_isHidden)) {
m_menuTools.afterDraw();
return;
}
@@ -187,6 +188,8 @@ namespace dusk {
ImGui::EndMainMenuBar();
}
m_menuTools.afterDraw();
}
bool ImGuiConsole::CheckMenuViewToggle(ImGuiKey key, bool& active) {