Bypass a crash when validating custom gcodes

This commit is contained in:
Lukas Matena 2023-03-15 22:03:01 +01:00
parent 09122fb0d0
commit 4b27210b6e

View File

@ -4515,6 +4515,8 @@ bool Tab::validate_custom_gcodes()
if (!opt_group->is_activated())
break;
std::string key = opt_group->opt_map().begin()->first;
if (key == "autoemit_temperature_commands")
continue;
valid &= validate_custom_gcode(opt_group->title, boost::any_cast<std::string>(opt_group->get_value(key)));
if (!valid)
break;