ENH: compatible with U0 firmware

Change-Id: I30a4702424fd0df2ad118505c62b6843968465da
This commit is contained in:
Stone Li 2022-07-15 23:33:39 +08:00 committed by Lane.Wei
parent 1555904bef
commit 0b921c44a8
5 changed files with 118 additions and 45 deletions

View file

@ -599,8 +599,8 @@ Sidebar::Sidebar(Plater *parent)
ScalableButton* add_btn = new ScalableButton(p->m_panel_filament_title, wxID_ANY, "add_filament");
add_btn->Bind(wxEVT_BUTTON, [this, scrolled_sizer](wxCommandEvent& e){
// BBS: limit filament choices to 16
if (p->combos_filament.size() >= 16)
// BBS: limit filament choices to 4
if (p->combos_filament.size() >= 4)
return;
int filament_count = p->combos_filament.size() + 1;