Skip to content
Browse files

fixed - re-initialise the add-on manager when loading a new profile, …

…or we will first load all add-ons from the master profile, then switch profiles and then the disabled status in the database for that profile doesn't match the status in the add-on manager. closes #13447
  • Loading branch information...
1 parent 0224f17 commit 72d267fc0ce24b953236727d041d38d40b2522d5 @opdenkamp opdenkamp committed
1  xbmc/addons/AddonManager.h
@@ -72,6 +72,7 @@ namespace ADDON
static CAddonMgr &Get();
+ bool ReInit() { DeInit(); return Init(); }
bool Init();
void DeInit();
3  xbmc/windows/GUIWindowLoginScreen.cpp
@@ -295,6 +295,9 @@ void CGUIWindowLoginScreen::LoadProfile(unsigned int profile)
+ // reload the add-ons, or we will first load all add-ons from the master account without checking disabled status
+ ADDON::CAddonMgr::Get().ReInit();
g_pythonParser.m_bLogin = true;

0 comments on commit 72d267f

Please sign in to comment.
Something went wrong with that request. Please try again.