display the raw type string if we don't know the type and it's not empty
This commit is contained in:
parent
3a1686ebf1
commit
f6f538adbc
1 changed files with 4 additions and 2 deletions
|
@ -937,9 +937,11 @@ namespace {
|
|||
const std::string& downloads = c["downloads"].str();
|
||||
const std::string& size = c["size"];
|
||||
const std::string& sizef = format_file_size(size);
|
||||
const std::string& type_str = c["type"];
|
||||
std::string type_str = c["type"];
|
||||
utils::strip(type_str);
|
||||
const ADDON_TYPE type = get_addon_type(type_str);
|
||||
const std::string& type_label_str = get_translatable_addon_type(type);
|
||||
const std::string& type_label_str = (type == ADDON_UNKNOWN && !type_str.empty())
|
||||
? type_str : get_translatable_addon_type(type);
|
||||
|
||||
addons.push_back(name);
|
||||
versions.push_back(c["version"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue