Skip to content

Commit

Permalink
Merge pull request #9473 from FernetMenta/inputstream
Browse files Browse the repository at this point in the history
BinaryAddonCache: ignore disabled addons
  • Loading branch information
FernetMenta committed Mar 29, 2016
2 parents 36675da + c4abf69 commit 90c3fff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/addons/BinaryAddonCache.cpp
Expand Up @@ -51,7 +51,8 @@ void CBinaryAddonCache::GetAddons(VECADDONS& addons, const TYPE& type)
{
for (auto &addon : it->second)
{
addons.push_back(addon);
if (!CAddonMgr::GetInstance().IsAddonDisabled(addon->ID()))
addons.push_back(addon);
}
}
}
Expand All @@ -70,7 +71,7 @@ void CBinaryAddonCache::Update()
for (auto &addonType : m_addonsToCache)
{
VECADDONS addons;
CAddonMgr::GetInstance().GetAddons(addons, addonType);
CAddonMgr::GetInstance().GetInstalledAddons(addons, addonType);
addonmap.insert(AddonMap::value_type(addonType, addons));
}

Expand Down

0 comments on commit 90c3fff

Please sign in to comment.