Skip to content
This repository
Browse code

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
Lars Op den Kamp authored December 11, 2012
1  xbmc/addons/AddonManager.h
@@ -72,6 +72,7 @@ namespace ADDON
72 72
   {
73 73
   public:
74 74
     static CAddonMgr &Get();
  75
+    bool ReInit() { DeInit(); return Init(); }
75 76
     bool Init();
76 77
     void DeInit();
77 78
 
3  xbmc/windows/GUIWindowLoginScreen.cpp
@@ -295,6 +295,9 @@ void CGUIWindowLoginScreen::LoadProfile(unsigned int profile)
295 295
     g_playlistPlayer.SetCurrentPlaylist(PLAYLIST_NONE);
296 296
   }
297 297
 
  298
+  // reload the add-ons, or we will first load all add-ons from the master account without checking disabled status
  299
+  ADDON::CAddonMgr::Get().ReInit();
  300
+
298 301
   g_weatherManager.Refresh();
299 302
 #ifdef HAS_PYTHON
300 303
   g_pythonParser.m_bLogin = true;

0 notes on commit 72d267f

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