diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-01-24 23:13:41 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-01-24 23:13:41 +0000 |
| commit | 17784edbd0427870d890675059827f8cfbf12a9d (patch) | |
| tree | 4b562f0f73b1984fc899b3e1a4515e369db18b58 /lib/python | |
| parent | 71f08ddecd2acdde935476ea53503d4fd95b5a46 (diff) | |
| download | enigma2-17784edbd0427870d890675059827f8cfbf12a9d.tar.gz enigma2-17784edbd0427870d890675059827f8cfbf12a9d.zip | |
allow overriding menus from plugins
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Menu.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index 19b36045..9f0db425 100644 --- 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): + # 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)) - # for the skin: first try a menu_<menuID>, then Menu self.skinName = [ ] |
