projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81ed3b8
)
PluginComponent.py: small cleanup
author
acid-burn
<acid-burn@opendreambox.org>
Mon, 7 Feb 2011 20:54:11 +0000
(21:54 +0100)
committer
acid-burn
<acid-burn@opendreambox.org>
Mon, 7 Feb 2011 20:54:11 +0000
(21:54 +0100)
lib/python/Components/PluginComponent.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/PluginComponent.py
b/lib/python/Components/PluginComponent.py
index
60f7673
..
0e178ff
100755
(executable)
--- 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):
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:
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)
def removePlugin(self, plugin):
self.pluginList.remove(plugin)