mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 07:39:10 +08:00
Fixed an update of the search list after the change of the print technology
This commit is contained in:
parent
1c1a7ed712
commit
3ba4a2cf3d
@ -3687,9 +3687,6 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
|
|||||||
* and for SLA presets they should be deleted
|
* and for SLA presets they should be deleted
|
||||||
*/
|
*/
|
||||||
wxGetApp().obj_list()->update_object_list_by_printer_technology();
|
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());
|
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<PrinterTechnology>(opt_key));
|
this->set_printer_technology(config.opt_enum<PrinterTechnology>(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")) {
|
else if ((opt_key == "bed_shape") || (opt_key == "bed_custom_texture") || (opt_key == "bed_custom_model")) {
|
||||||
bed_shape_changed = true;
|
bed_shape_changed = true;
|
||||||
update_scheduled = true;
|
update_scheduled = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user