Skip to content

Commit

Permalink
Fixed update of sliders' texts into object settings dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Jul 13, 2018
1 parent 06613e4 commit d99b484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Slic3r/GUI/OptionsGroup/Field.pm
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,9 @@ sub BUILD {
$sizer->Add($textctrl, 0, wxALIGN_CENTER_VERTICAL, 0);

EVT_SLIDER($self->parent, $slider, sub {
if (! $self->disable_change_event) {
$self->textctrl->SetLabel($self->get_value);
if (! $self->disable_change_event) {
# wxTextCtrl::SetLabel() does not work on Linux, use wxTextCtrl::SetValue() instead
$self->textctrl->SetValue($self->get_value);
$self->_on_change($self->option->opt_id);
}
});
Expand Down

0 comments on commit d99b484

Please sign in to comment.