X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f52ee24fceb98af2fb62c7390f741639903ca58a..f6d690f4f6d13acdaf4bae627c8cff6a1d93a198:/lib/python/Components/HelpMenuList.py diff --git a/lib/python/Components/HelpMenuList.py b/lib/python/Components/HelpMenuList.py index b1a31b8b..3d36e958 100644 --- a/lib/python/Components/HelpMenuList.py +++ b/lib/python/Components/HelpMenuList.py @@ -1,4 +1,4 @@ -from GUIComponent import * +from GUIComponent import GUIComponent from enigma import eListboxPythonMultiContent, eListbox, gFont @@ -21,6 +21,10 @@ class HelpMenuList(GUIComponent): buttons = queryKeyBinding(context, action) + # do not display entries which are not accessible from keys + if not len(buttons): + continue + name = None flags = 0 @@ -59,9 +63,12 @@ class HelpMenuList(GUIComponent): def postWidgetCreate(self, instance): instance.setContent(self.l) - instance.selectionChanged.get().append(self.selectionChanged) + def preWidgetRemove(self, instance): + instance.setContent(None) + instance.selectionChanged.get().remove(self.selectionChanged) + def selectionChanged(self): for x in self.onSelChanged: x()