FIX: remove default value from tool tip

Change-Id: I3f51891f333014014971025bbbf2f1179d9d2cf3
This commit is contained in:
chunmao.guo 2022-08-04 09:26:49 +08:00 committed by Lane.Wei
parent a35ecc4fba
commit 36be714ed4

View file

@ -207,9 +207,7 @@ wxString Field::get_tooltip_text(const wxString &default_string)
}
if (tooltip.length() > 0)
tooltip_text = tooltip + "\n" + _(L("default value")) + "\t: " +
(boost::iends_with(opt_id, "_gcode") ? "\n" : "") + default_string +
(boost::iends_with(opt_id, "_gcode") ? "" : "\n") +
tooltip_text = tooltip + "\n" +
_(L("parameter name")) + "\t: " + opt_id;
#endif
return tooltip_text;