just show hdd info when there is one
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Mon, 14 Nov 2005 03:50:14 +0000 (03:50 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Mon, 14 Nov 2005 03:50:14 +0000 (03:50 +0000)
lib/python/Screens/About.py

index 542bee6..5359b26 100644 (file)
@@ -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"], 
                        {