ENH: return if the bed_type of a plate is the same as global

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I15882d04fa89ebb27bc57434ff9f2c9468725d71
(cherry picked from commit b1606e07f1b9d91f1c01676ebbbe550e69a2ce53)
This commit is contained in:
yifan.wu 2022-11-09 18:36:15 +08:00 committed by Lane.Wei
parent 0320872e4e
commit acf8f7b2a3
3 changed files with 20 additions and 4 deletions

View file

@ -10585,8 +10585,9 @@ int Plater::select_plate_by_hover_id(int hover_id, bool right_click)
SetBedTypeDialog dlg(this, wxID_ANY, _L("Select bed type"));
dlg.sync_bed_type(p->partplate_list.get_curr_plate()->get_bed_type());
dlg.Bind(EVT_SET_BED_TYPE_CONFIRM, [this, plate_index](wxCommandEvent& e) {
bool same_as_global = false;
auto type = (BedType)(e.GetInt());
p->partplate_list.get_curr_plate()->set_bed_type(type);
p->partplate_list.get_curr_plate()->set_bed_type(type, same_as_global);
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format("select bed type %1% for plate %2% at plate side")%type %plate_index;
});
dlg.ShowModal();