summaryrefslogtreecommitdiffstats
path: root/module/plugins/AccountManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/AccountManager.py')
-rw-r--r--module/plugins/AccountManager.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py
index 7e30f4817..fc521d36c 100644
--- a/module/plugins/AccountManager.py
+++ b/module/plugins/AccountManager.py
@@ -35,18 +35,19 @@ class AccountManager():
"""Constructor"""
self.core = core
+ self.lock = Lock()
+
+ self.initPlugins()
+ self.saveAccounts() # save to add categories to conf
+ def initPlugins(self):
self.accounts = {} # key = ( plugin )
self.plugins = {}
- self.lock = Lock()
self.initAccountPlugins()
-
self.loadAccounts()
- self.saveAccounts() # save to add categories to conf
- #----------------------------------------------------------------------
def getAccountPlugin(self, plugin):
"""get account instance for plugin or None if anonymous"""
if plugin in self.accounts: