show 'disabled' for disabled timers, instead of 'done'
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 7 Nov 2007 01:30:28 +0000 (01:30 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 7 Nov 2007 01:30:28 +0000 (01:30 +0000)
lib/python/Components/TimerList.py

index 53442f5..d3c20ec 100644 (file)
@@ -56,6 +56,9 @@ class TimerList(HTMLComponent, GUIComponent, object):
                else:
                        state = _("done!")
 
                else:
                        state = _("done!")
 
+               if timer.disabled:
+                       state = _("disabled")
+
                res.append((eListboxPythonMultiContent.TYPE_TEXT, width-240, 50, 240, 20, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, state))
 
                if timer.disabled:
                res.append((eListboxPythonMultiContent.TYPE_TEXT, width-240, 50, 240, 20, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, state))
 
                if timer.disabled: