From: Ronny Strutz Date: Mon, 14 Nov 2005 03:50:14 +0000 (+0000) Subject: just show hdd info when there is one X-Git-Tag: 2.6.0~5235 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8f01a41693ff4b01a224e9ea2f9a26538ec20414 just show hdd info when there is one --- 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"], {