mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-20 05:39:04 +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])) + ")";
|
new_val = wxString("\"") + values[val] + "\"" + " (" + from_u8(_utf8(labels[val])) + ")";
|
||||||
break;
|
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:
|
case coBool:
|
||||||
new_val = conf_substitution.new_value->getBool() ? "true" : "false";
|
new_val = conf_substitution.new_value->getBool() ? "true" : "false";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user