Add wrapping description

Original Commit: prusa3d/PrusaSlicer@83b8988

Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
Ocraftyone 2023-12-26 07:56:45 -05:00
parent 0e590083fa
commit 036b21edb9
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125

View file

@ -291,7 +291,7 @@ void EditGCodeDialog::bind_list_and_button()
format_wxstr("%1%\n(%2%)", def->label.empty() ? _(def->full_label) : _(def->label), type_str);
if (def)
description = _(def->tooltip);
description = get_wraped_wxString(_(def->tooltip), 120);
}
else
label = "Undef optptr";