From 36be714ed49be6e00ef03d1b2e7b58a778e6a834 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 4 Aug 2022 09:26:49 +0800 Subject: [PATCH] FIX: remove default value from tool tip Change-Id: I3f51891f333014014971025bbbf2f1179d9d2cf3 --- src/slic3r/GUI/Field.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 1cacb1788..90d97ee43 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -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;