mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 10:06:02 +08:00
Fix of long long long new style name
This commit is contained in:
parent
2372fa9493
commit
6610bf2eb1
@ -1191,13 +1191,11 @@ void GLGizmoEmboss::draw_rename_style(bool start_rename)
|
|||||||
allow_change = true;
|
allow_change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
is_unique && !new_name.empty();
|
|
||||||
|
|
||||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags_EnterReturnsTrue;
|
ImGuiInputTextFlags flags = ImGuiInputTextFlags_EnterReturnsTrue;
|
||||||
if ((ImGui::InputText(("##font name" + original_style_name).c_str(), &new_name, flags) && allow_change) ||
|
if ((ImGui::InputText("##rename style", &new_name, flags) && allow_change) ||
|
||||||
m_imgui->button(_L("ok"), ImVec2(0.f, 0.f), allow_change)) {
|
m_imgui->button(_L("ok"), ImVec2(0.f, 0.f), allow_change)) {
|
||||||
rename_item->name = new_name;
|
rename_item->name = new_name;
|
||||||
m_font_manager.get_truncated_name() = "";
|
m_font_manager.get_truncated_name().clear();
|
||||||
m_font_manager.free_style_images();
|
m_font_manager.free_style_images();
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
select_stored_font_item();
|
select_stored_font_item();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user