diff --git a/imgui.cpp b/imgui.cpp index 38359af2..5687febb 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3467,14 +3467,14 @@ static void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiSetCond void ImGui::SetWindowCollapsed(bool collapsed, ImGuiSetCondition cond) { ImGuiWindow* window = GetCurrentWindow(); - SetWindowCollapsed(window); + SetWindowCollapsed(window, collapsed, cond); } void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiSetCondition cond) { ImGuiWindow* window = FindWindowByName(name); if (window) - SetWindowCollapsed(window); + SetWindowCollapsed(window, collapsed, cond); } void ImGui::SetWindowFocus()