performance fix: don't redraw if in/out list is the same
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 17 Nov 2008 16:19:39 +0000 (17:19 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 17 Nov 2008 16:19:39 +0000 (17:19 +0100)
lib/python/Components/Renderer/PositionGauge.py

index 5fa8c35..3f93d82 100644 (file)
@@ -50,9 +50,10 @@ class PositionGauge(Renderer):
                return self.__cutlist
        
        def setCutlist(self, cutlist):
                return self.__cutlist
        
        def setCutlist(self, cutlist):
-               self.__cutlist = cutlist
-               if self.instance is not None:
-                       self.instance.setInOutList(cutlist)
+               if self.__cutlist != cutlist:
+                       self.__cutlist = cutlist
+                       if self.instance is not None:
+                               self.instance.setInOutList(cutlist)
 
        cutlist = property(getCutlist, setCutlist)
 
 
        cutlist = property(getCutlist, setCutlist)