Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 72d267fc0ce24b953236727d041d38d40b2522d5 1 parent 0224f17
@opdenkamp opdenkamp authored
View
1  xbmc/addons/AddonManager.h
@@ -72,6 +72,7 @@ namespace ADDON
{
public:
static CAddonMgr &Get();
+ bool ReInit() { DeInit(); return Init(); }
bool Init();
void DeInit();
View
3  xbmc/windows/GUIWindowLoginScreen.cpp
@@ -295,6 +295,9 @@ void CGUIWindowLoginScreen::LoadProfile(unsigned int profile)
g_playlistPlayer.SetCurrentPlaylist(PLAYLIST_NONE);
}
+ // 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_weatherManager.Refresh();
#ifdef HAS_PYTHON
g_pythonParser.m_bLogin = true;
Please sign in to comment.
Something went wrong with that request. Please try again.