From 3ba4a2cf3d1bb8f53e3ce5fb761fed4cd02597be Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 23 Apr 2020 21:32:12 +0200 Subject: [PATCH] Fixed an update of the search list after the change of the print technology --- src/slic3r/GUI/Plater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 8c7a59fa1..149bc95ae 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3687,9 +3687,6 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt) * and for SLA presets they should be deleted */ wxGetApp().obj_list()->update_object_list_by_printer_technology(); - - // print technology could be changed, so we should to update a search list - sidebar->update_searcher(); } } @@ -5423,8 +5420,11 @@ void Plater::on_config_change(const DynamicPrintConfig &config) } p->config->set_key_value(opt_key, config.option(opt_key)->clone()); - if (opt_key == "printer_technology") + if (opt_key == "printer_technology") { this->set_printer_technology(config.opt_enum(opt_key)); + // print technology is changed, so we should to update a search list + p->sidebar->update_searcher(); + } else if ((opt_key == "bed_shape") || (opt_key == "bed_custom_texture") || (opt_key == "bed_custom_model")) { bed_shape_changed = true; update_scheduled = true;