X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a9f9792e9d271864182d32bfff58795690084cab..01f6932815a6a21ab46bb420be093685378b43dd:/lib/python/Components/DiskInfo.py diff --git a/lib/python/Components/DiskInfo.py b/lib/python/Components/DiskInfo.py index 68674e99..9490a0f8 100644 --- a/lib/python/Components/DiskInfo.py +++ b/lib/python/Components/DiskInfo.py @@ -11,12 +11,13 @@ class DiskInfo(GUIComponent, VariableText): 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: