aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2011-02-07 21:54:11 +0100
committeracid-burn <acid-burn@opendreambox.org>2011-02-07 21:54:11 +0100
commit6a3f59e24b003c417fbf6b31f8a6d87817fec24c (patch)
treec35d76ac7c4f60cda8a258661765d9b6f53fd808 /lib/python
parent81ed3b8706eb034f04e9db87fbcfd9dbba39e125 (diff)
downloadenigma2-6a3f59e24b003c417fbf6b31f8a6d87817fec24c.tar.gz
enigma2-6a3f59e24b003c417fbf6b31f8a6d87817fec24c.zip
PluginComponent.py: small cleanup
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/Components/PluginComponent.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py
index 60f76738..0e178fff 100755
--- a/lib/python/Components/PluginComponent.py
+++ b/lib/python/Components/PluginComponent.py
@@ -21,21 +21,14 @@ class PluginComponent:
self.prefix = prefix
def addPlugin(self, plugin):
- if self.firstRun:
+ if self.firstRun or plugin.needsRestart is False:
self.pluginList.append(plugin)
for x in plugin.where:
self.plugins.setdefault(x, []).append(plugin)
if x == PluginDescriptor.WHERE_AUTOSTART:
plugin(reason=0)
else:
- if plugin.needsRestart is False:
- self.pluginList.append(plugin)
- for x in plugin.where:
- self.plugins.setdefault(x, []).append(plugin)
- if x == PluginDescriptor.WHERE_AUTOSTART:
- plugin(reason=0)
- else:
- self.restartRequired = True
+ self.restartRequired = True
def removePlugin(self, plugin):
self.pluginList.remove(plugin)