fix rotor position in infobar for motorized tuner. thx Dimitrij
[openblackhole/openblackhole-enigma2.git] / lib / python / Screens / Dish.py
index 4e50d53..9f1f91f 100644 (file)
@@ -303,7 +303,8 @@ class Dishpip(Dish, Screen):
                        if self.__state == self.STATE_HIDDEN:
                                self.rotorTimer.stop()
                                self.moving_timeout = 0
-                               self.show()
+                               if config.usage.showdish.value:
+                                       self.show()
                                if self.cur_orbpos != INVALID_POSITION and self.cur_orbpos != config.misc.lastrotorposition.value:
                                        config.misc.lastrotorposition.value = self.cur_orbpos
                                        config.misc.lastrotorposition.save()
@@ -329,7 +330,7 @@ class Dishpip(Dish, Screen):
        def startPiPService(self, ref=None):
                if self.__state == self.STATE_SHOWN:
                        self.__toHide()
-               if not config.usage.showdish.value or ref is None:
+               if ref is None:
                        return
                info = eServiceCenter.getInstance().info(ref)
                data = info and info.getInfoObject(ref, iServiceInformation.sTransponderData)
@@ -389,4 +390,4 @@ class Dishpip(Dish, Screen):
                        tuner = feinfo and feinfo.getFrontendData()
                        if tuner is not None:
                                return tuner.get("tuner_number")
-               return None
\ No newline at end of file
+               return None