Ensure status icons always drawn in same place
This commit is contained in:
parent
949642499a
commit
1f443e97d5
1 changed files with 12 additions and 9 deletions
|
@ -298,8 +298,11 @@ class StatusIconBox(Gauge):
|
||||||
|
|
||||||
x, y = 0, self.height - self.ICON_HEIGHT
|
x, y = 0, self.height - self.ICON_HEIGHT
|
||||||
|
|
||||||
for typeof in self.statuses:
|
for icon_type in self.ICONS:
|
||||||
status = self.statuses[typeof]
|
typeof = icon_type.TYPE
|
||||||
|
status = self.statuses.get(typeof)
|
||||||
|
|
||||||
|
if status is not None:
|
||||||
icon = self.icons[typeof]
|
icon = self.icons[typeof]
|
||||||
|
|
||||||
if icon.drawable(status):
|
if icon.drawable(status):
|
||||||
|
|
Loading…
Add table
Reference in a new issue