fix text for buttons
[enigma2.git] / lib / python / Components / DiskInfo.py
index 68674e9906bc9a4510f6f6fced3497b0bfbe65b9..be1521cf304fa3a92ca20b289b1b763d8e8f16dd 100644 (file)
@@ -6,17 +6,18 @@ from enigma import eLabel
 
 # TODO: Harddisk.py has similiar functions, but only similiar.
 # fix this to use same code
-class DiskInfo(GUIComponent, VariableText):
+class DiskInfo(VariableText, GUIComponent):
        FREE = 0
        USED = 1
        SIZE = 2
        
-       def __init__(self, path, type):
+       def __init__(self, path, type, update = True):
                GUIComponent.__init__(self)
                VariableText.__init__(self)
                self.type = type
                self.path = path
-               self.update()
+               if update:
+                       self.update()
        
        def update(self):
                try: