mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-11 05:21:47 +08:00
disalow advance edit when unknown font is selected in 3mf
This commit is contained in:
parent
58c028d904
commit
01633a68c0
@ -1046,6 +1046,11 @@ void GLGizmoEmboss::draw_window()
|
|||||||
ImGui::TreePush();
|
ImGui::TreePush();
|
||||||
draw_style_edit();
|
draw_style_edit();
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
|
|
||||||
|
// close advanced style property when unknown font is selected
|
||||||
|
if (m_is_unknown_font && m_is_advanced_edit_style)
|
||||||
|
ImGui::SetNextTreeNodeOpen(false);
|
||||||
|
|
||||||
if (ImGui::TreeNode(_u8L("advanced").c_str())) {
|
if (ImGui::TreeNode(_u8L("advanced").c_str())) {
|
||||||
if (!m_is_advanced_edit_style) {
|
if (!m_is_advanced_edit_style) {
|
||||||
set_minimal_window_size(true);
|
set_minimal_window_size(true);
|
||||||
@ -3065,7 +3070,7 @@ void GLGizmoEmboss::create_notification_not_valid_font(
|
|||||||
std::string text =
|
std::string text =
|
||||||
GUI::format(_L("Can't load exactly same font(\"%1%\"), "
|
GUI::format(_L("Can't load exactly same font(\"%1%\"), "
|
||||||
"Aplication select similar one(\"%2%\"). "
|
"Aplication select similar one(\"%2%\"). "
|
||||||
"When you edit text, similar font will be applied."),
|
"You have to specify font for enable edit text."),
|
||||||
origin_font_name, actual_font_name);
|
origin_font_name, actual_font_name);
|
||||||
auto notification_manager = wxGetApp().plater()->get_notification_manager();
|
auto notification_manager = wxGetApp().plater()->get_notification_manager();
|
||||||
notification_manager->push_notification(type, level, text);
|
notification_manager->push_notification(type, level, text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user