Bugfix: wrong default in extruder_offset tooltip. #3051

This commit is contained in:
Alessandro Ranellucci 2015-11-04 19:13:11 +01:00
parent 01a2a07ecd
commit 69a71db25b

View file

@ -334,7 +334,8 @@ sub get_option {
gui_flags => $optdef->{gui_flags},
label => ($self->full_labels && defined $optdef->{full_label}) ? $optdef->{full_label} : $optdef->{label},
sidetext => $optdef->{sidetext},
tooltip => $optdef->{tooltip} . " (default: " . $default_value . ")",
# calling serialize() ensures we get a stringified value
tooltip => $optdef->{tooltip} . " (default: " . $self->config->serialize($opt_key) . ")",
multiline => $optdef->{multiline},
width => $optdef->{width},
min => $optdef->{min},