State if no add-ons installed.

This commit is contained in:
Pentarctagon 2020-06-10 21:14:59 -05:00
parent 4b504f2c66
commit f9af0b8816
No known key found for this signature in database
GPG key ID: 29E48D667D52CCF3

View file

@ -489,11 +489,19 @@ std::string full_build_report()
<< '\n'
<< CVideo::video_settings_report()
<< '\n'
<< report_heading("Installed Add-ons")
<< report_heading("Installed add-ons")
<< '\n';
for(const auto& addon_info : installed_addons_and_versions())
const auto installed_addons = installed_addons_and_versions();
if(installed_addons.size() == 0)
{
o << addon_info.first << " : " << addon_info.second << '\n';
o << "No add-ons installed." << '\n';
}
else
{
for(const auto& addon_info : installed_addons)
{
o << addon_info.first << " : " << addon_info.second << '\n';
}
}
return o.str();