From ba61ec0812bb241b10f1201db675f22d1fdf99e9 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 11 Jun 2009 23:57:35 +0200 Subject: [PATCH] Subtitles.py: add possibilty to use this screen with other InfoBarSubtitleSupport instances --- lib/python/Screens/Subtitles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/Screens/Subtitles.py b/lib/python/Screens/Subtitles.py index 86944671..9ba7e0a5 100644 --- a/lib/python/Screens/Subtitles.py +++ b/lib/python/Screens/Subtitles.py @@ -8,7 +8,7 @@ from enigma import iPlayableService from Tools.ISO639 import LanguageCodes class Subtitles(Screen, ConfigListScreen): - def __init__(self, session): + def __init__(self, session, infobar=None): Screen.__init__(self, session) self["actions"] = ActionMap(["SetupActions"], @@ -19,7 +19,7 @@ class Subtitles(Screen, ConfigListScreen): self.list = [] ConfigListScreen.__init__(self, self.list) - self.infobar = self.session.infobar + self.infobar = infobar or self.session.infobar self.fillList() self.__event_tracker = ServiceEventTracker(screen=self, eventmap= -- 2.30.2