Fix per-plate bed type handling (#15916)

This commit is contained in:
Kiss Lorand
2026-10-02 21:02:36 -03:00
committed by GitHub
parent eb30ea1eb8
commit 1241dd5521
9 changed files with 101 additions and 7 deletions
+3 -2
View File
@@ -431,8 +431,9 @@ PlateSettingsDialog::PlateSettingsDialog(wxWindow* parent, const wxString& title
}
}
if (!wxGetApp().preset_bundle->is_bbl_vendor())
m_bed_type_choice->Disable();
auto &preset_bundle = *wxGetApp().preset_bundle;
const auto &printer_config = preset_bundle.printers.get_edited_preset().config;
m_bed_type_choice->Enable(preset_bundle.is_bbl_vendor() || printer_config.opt_bool("support_multi_bed_types"));
wxStaticText* m_bed_type_txt = new wxStaticText(this, wxID_ANY, _L("Bed type"));
m_bed_type_txt->SetFont(Label::Body_14);