Edited configuration interface

* changed (bool == 1) to (bool > 0)
This commit is contained in:
arcan1s
2013-10-03 00:18:29 +04:00
parent d8a9ca1fe6
commit 7aabdf9485
7 changed files with 1196 additions and 1176 deletions

View File

@ -117,11 +117,11 @@ class pyTextWidget(plasmascript.Applet):
def updateLabel(self):
"""function to update label"""
if ((self.memBool == 1) and (self.memInMb == False)):
if ((self.memBool > 0) and (self.memInMb == False)):
self.memText()
if ((self.swapBool == 1) and (self.swapInMb == False)):
if ((self.swapBool > 0) and (self.swapInMb == False)):
self.swapText()
if (self.batBool == 1):
if (self.batBool > 0):
self.batText()