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