aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/About.py
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-14 03:50:14 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-14 03:50:14 +0000
commit8f01a41693ff4b01a224e9ea2f9a26538ec20414 (patch)
treec43c2287b5d0df98078a10d6e6f70ac747831ea7 /lib/python/Screens/About.py
parentc5929af42002961fc35d6917ce6e2dcc422a013c (diff)
downloadenigma2-8f01a41693ff4b01a224e9ea2f9a26538ec20414.tar.gz
enigma2-8f01a41693ff4b01a224e9ea2f9a26538ec20414.zip
just show hdd info when there is one
Diffstat (limited to 'lib/python/Screens/About.py')
-rw-r--r--lib/python/Screens/About.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Screens/About.py b/lib/python/Screens/About.py
index 542bee6a..5359b26b 100644
--- a/lib/python/Screens/About.py
+++ b/lib/python/Screens/About.py
@@ -21,8 +21,10 @@ class About(Screen):
self["hdd"] = Label("Detected HDD:")
hdd = Harddisk(0)
- self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
- #self["hddA"] = Label("Seagate 398 GByte (323 GByte free)")
+ if hdd.model() != "":
+ self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free()))
+ else:
+ self["hddA"] = Label("none")
self["actions"] = ActionMap(["SetupActions"],
{