FIX: [STUDIO-3037] use plate type labels from configdef

Change-Id: Iecf81fe5a8cbe35ffa431432ff938a4b81ddea5c
This commit is contained in:
chunmao.guo 2023-05-31 15:37:02 +08:00 committed by Lane.Wei
parent 0bc2e5b886
commit 1a36608d59
3 changed files with 8 additions and 17 deletions

View file

@ -129,17 +129,11 @@ void PlateSettingsDialog::sync_print_seq(int print_seq)
wxString PlateSettingsDialog::to_bed_type_name(BedType bed_type) {
switch (bed_type) {
case btDefault:
return _L("Same as Global Bed Type");
case btPC:
return _L("Cool Plate") + " / " + _L("PLA Plate");
case btEP:
return _L("Engineering Plate");
case btPEI:
return _L("High Temp Plate");
case btPTE:
return _L("Textured PEI Plate");
default:
return _L("Same as Global Bed Type");
return _L("Same as Global Plate Type");
default: {
const ConfigOptionDef *bed_type_def = print_config_def.get("curr_bed_type");
return _(bed_type_def->enum_labels[size_t(bed_type) - 1]);
}
}
return _L("Same as Global Bed Type");
}