Skip to content

Commit

Permalink
State if no add-ons installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jun 11, 2020
1 parent 4b504f2 commit f9af0b8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/build_info.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit f9af0b8

Please sign in to comment.