Remove top right button X on emboss window

This commit is contained in:
Filip Sykala - NTB T15p 2022-09-23 12:22:50 +02:00
parent 77cc231ed6
commit cbd030b246

View File

@ -573,12 +573,8 @@ void GLGizmoEmboss::on_render_input_window(float x, float y, float bottom_limit)
m_set_window_offset.reset(); m_set_window_offset.reset();
} }
ImGuiWindowFlags flag = //ImGuiWindowFlags_AlwaysAutoResize ImGuiWindowFlags flag = ImGuiWindowFlags_NoCollapse;
//ImGuiWindowFlags_NoResize if (ImGui::Begin(on_get_name().c_str(), nullptr, flag)) {
ImGuiWindowFlags_NoCollapse
;
bool is_open = true;
if (ImGui::Begin(on_get_name().c_str(), &is_open, flag)) {
// Need to pop var before draw window // Need to pop var before draw window
ImGui::PopStyleVar(); // WindowMinSize ImGui::PopStyleVar(); // WindowMinSize
draw_window(); draw_window();
@ -586,11 +582,6 @@ void GLGizmoEmboss::on_render_input_window(float x, float y, float bottom_limit)
ImGui::PopStyleVar(); // WindowMinSize ImGui::PopStyleVar(); // WindowMinSize
} }
ImGui::End(); ImGui::End();
// close button in header was hit
if (!is_open) {
close();
}
} }
void GLGizmoEmboss::on_set_state() void GLGizmoEmboss::on_set_state()