diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-02 21:15:57 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-02 21:15:57 +0100 |
commit | f3e18e3fef2b0a6d7db26ddc7c9f025cdae7ef23 (patch) | |
tree | b8ad2956aa965fff407fb3ceb20d7decefb67d3b /module | |
parent | Happy new year commit (diff) | |
download | pyload-f3e18e3fef2b0a6d7db26ddc7c9f025cdae7ef23.tar.xz |
New naming: pyLoadCore -> pyload
pyLoadCli -> pyload-cli
Diffstat (limited to 'module')
-rw-r--r-- | module/AddonManager.py | 4 | ||||
-rw-r--r-- | module/config/ConfigManager.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/module/AddonManager.py b/module/AddonManager.py index ccb617dc6..7d3852274 100644 --- a/module/AddonManager.py +++ b/module/AddonManager.py @@ -43,7 +43,7 @@ class AddonManager: self.lock = RLock() self.createIndex() - # manage addons an config change + # manage addons on config change self.addEvent("configChanged", self.manageAddons) @lock @@ -224,8 +224,6 @@ class AddonManager: def addEventListener(self, plugin, func, event): """ add the event to the list """ - - if plugin not in self.events: self.events[plugin] = [] self.events[plugin].append((func, event)) diff --git a/module/config/ConfigManager.py b/module/config/ConfigManager.py index 3ee66bc85..872ce2e00 100644 --- a/module/config/ConfigManager.py +++ b/module/config/ConfigManager.py @@ -98,7 +98,7 @@ class ConfigManager(ConfigParser): self.values[user, section][option] = value self.saveValues(user, section) - if changed: self.core.evm.dispatchEvent("configChanged", value) + if changed: self.core.evm.dispatchEvent("configChanged", section, option, value) return changed def saveValues(self, user, section): |