mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: sync extruder info when select preset
when the connected machine is mutli_extruer and is the same as preset 2. fix the filament unprintable check bug jira: STUDIO-10047 Change-Id: I4e78003f080897d5b43c0a742852078b149eba45 (cherry picked from commit 1fbc179ae4874d24089dc1faf81608b9417481cb)
This commit is contained in:
@@ -7879,6 +7879,18 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
|
||||
preset_name = physical_printers.get_selected_printer_preset_name();
|
||||
else
|
||||
physical_printers.unselect_printer();
|
||||
|
||||
|
||||
// sync extruder info when select multi_extruder preset
|
||||
if (Slic3r::DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager()) {
|
||||
MachineObject *obj = dev->get_selected_machine();
|
||||
if (obj && obj->is_multi_extruders()) {
|
||||
PresetBundle *preset_bundle = wxGetApp().preset_bundle;
|
||||
if (preset_bundle->printers.get_edited_preset().get_printer_type(preset_bundle) == obj->printer_type) {
|
||||
GUI::wxGetApp().sidebar().sync_extruder_list();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//BBS
|
||||
//wxWindowUpdateLocker noUpdates1(sidebar->print_panel());
|
||||
|
||||
Reference in New Issue
Block a user