mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 14:15:53 +08:00
Remove top right button X on emboss window
This commit is contained in:
parent
77cc231ed6
commit
cbd030b246
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user