mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 10:32:31 -07:00
FIX: config: fix the warning string missing issue
also fix the assert jira: no-jira Change-Id: I6becb689ff6a1dd2894d5004da796ece8fb23324 (cherry picked from commit ab588003e3bbd844f83b568106f60ef976fc6530)
This commit is contained in:
parent
928debaff8
commit
5c646d4b42
1 changed files with 8 additions and 0 deletions
|
|
@ -328,6 +328,14 @@ static void add_config_substitutions(const ConfigSubstitutions& conf_substitutio
|
|||
new_val = wxString("\"") + values[val] + "\"" + " (" + from_u8(_utf8(labels[val])) + ")";
|
||||
break;
|
||||
}
|
||||
case coEnums:
|
||||
{
|
||||
const std::vector<std::string>& labels = def->enum_labels;
|
||||
const std::vector<std::string>& values = def->enum_values;
|
||||
std::string val = conf_substitution.new_value->serialize();
|
||||
new_val = wxString("\"") + from_u8(_utf8(val)) + "\"";
|
||||
break;
|
||||
}
|
||||
case coBool:
|
||||
new_val = conf_substitution.new_value->getBool() ? "true" : "false";
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue