Add windowTitle when open ChoiceBox
[openblackhole/openblackhole-enigma2.git] / lib / python / Screens / ChoiceBox.py
index 9122d00..a5e9588 100644 (file)
@@ -87,10 +87,15 @@ class ChoiceBox(Screen):
                        "moveDown": self.additionalMoveDown,
                        "menu": self.setDefaultChoiceList
                }, -1)
-
-               if windowTitle is None:
-                       windowTitle = _("Select")
-               self.setTitle(windowTitle)
+               self.windowTitle = windowTitle
+               self.onLayoutFinish.append(self.layoutFinished)
+
+       def layoutFinished(self):
+               if self.windowTitle is None:
+                       self.windowTitle = _("Select")
+               if not self.getSkinTitle():
+                       self.windowTitle = ""
+               self.setTitle(self.windowTitle)
 
        def autoResize(self):
                orgwidth = self.instance.size().width()