Do not display capacitor use column on 0
A long column of 0's is annoying. Don't display it if it's 0.
This commit is contained in:
@@ -37,7 +37,7 @@ class CapacitorUse(ViewColumn):
|
||||
|
||||
def getText(self, mod):
|
||||
capUse = mod.capUse
|
||||
if capUse is not None:
|
||||
if capUse:
|
||||
return "%s%s" % ("+" if capUse < 0 else "", (formatAmount(-capUse, 3, 0, 3)))
|
||||
else:
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user