mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-20 01:49:07 +08:00
FIX: config: fix the warning string missing issue
also fix the assert jira: no-jira Change-Id: I6becb689ff6a1dd2894d5004da796ece8fb23324
This commit is contained in:
parent
8d93a26c5b
commit
ab588003e3
@ -324,6 +324,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…
x
Reference in New Issue
Block a user