projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
71f08dd
)
allow overriding menus from plugins
author
Felix Domke
<tmbinc@elitedvb.net>
Thu, 24 Jan 2008 23:13:41 +0000
(23:13 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Thu, 24 Jan 2008 23:13:41 +0000
(23:13 +0000)
lib/python/Screens/Menu.py
patch
|
blob
|
history
diff --git
a/lib/python/Screens/Menu.py
b/lib/python/Screens/Menu.py
index
19b3604
..
9f0db42
100644
(file)
--- a/
lib/python/Screens/Menu.py
+++ b/
lib/python/Screens/Menu.py
@@
-194,8
+194,14
@@
class Menu(Screen):
if menuID is not None:
# plugins
for l in plugins.getPluginsForMenu(menuID):
if menuID is not None:
# plugins
for l in plugins.getPluginsForMenu(menuID):
+ # check if a plugin overrides an existing menu
+ plugin_menuid = l[2]
+ for x in list:
+ print x[2], plugin_menuid
+ if x[2] == plugin_menuid:
+ list.remove(x)
+ break
list.append((l[0], boundFunction(l[1], self.session), l[2], l[3] or 50))
list.append((l[0], boundFunction(l[1], self.session), l[2], l[3] or 50))
-
# for the skin: first try a menu_<menuID>, then Menu
self.skinName = [ ]
# for the skin: first try a menu_<menuID>, then Menu
self.skinName = [ ]