SPE-2618 Remove redundant wxWindowsUpdateLocker

It was causing unnecessary re-render in each call to show
bulk slicing buttons.
This commit is contained in:
Martin Sach 2024-12-16 13:11:57 +01:00
parent 24ad87f13f
commit b5ef21947b

View File

@ -4047,7 +4047,6 @@ void Plater::priv::show_autoslicing_action_buttons() const {
if (!s_multiple_beds.is_autoslicing()) {
return;
}
wxWindowUpdateLocker noUpdater(sidebar);
DynamicPrintConfig* selected_printer_config = wxGetApp().preset_bundle->physical_printers.get_selected_printer_config();
const auto print_host_opt = selected_printer_config ? selected_printer_config->option<ConfigOptionString>("print_host") : nullptr;