mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
@@ -409,11 +409,10 @@ PageFirmware::PageFirmware(ConfigWizard *parent) :
|
|||||||
|
|
||||||
void PageFirmware::apply_custom_config(DynamicPrintConfig &config)
|
void PageFirmware::apply_custom_config(DynamicPrintConfig &config)
|
||||||
{
|
{
|
||||||
ConfigOptionEnum<GCodeFlavor> opt;
|
|
||||||
|
|
||||||
auto sel = gcode_picker->GetSelection();
|
auto sel = gcode_picker->GetSelection();
|
||||||
if (sel != wxNOT_FOUND && opt.deserialize(gcode_picker->GetString(sel).ToStdString())) {
|
if (sel >= 0 && sel < gcode_opt.enum_labels.size()) {
|
||||||
config.set_key_value("gcode_flavor", &opt);
|
auto *opt = new ConfigOptionEnum<GCodeFlavor>(static_cast<GCodeFlavor>(sel));
|
||||||
|
config.set_key_value("gcode_flavor", opt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user