Skip to content

Commit

Permalink
provide "alwayson" option for extrabars
Browse files Browse the repository at this point in the history
  • Loading branch information
herrnst committed Apr 7, 2013
1 parent 9b9d1e6 commit c1402f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/lib/lcdbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def LoadSkin(self, xmlFile):
extrabar = None
extrabar = element.find("extrabar%i" % (i))
if extrabar != None:
if str(extrabar.text).strip() in ["progress", "volume", "volumehidden", "menu"]:
if str(extrabar.text).strip() in ["progress", "volume", "volumehidden", "menu", "alwayson"]:
self.m_extraBars[i] = str(extrabar.text).strip()
else:
self.m_extraBars[i] = ""
Expand Down Expand Up @@ -753,6 +753,8 @@ def SetExtraInfoBars(self, isplaying):
self.m_cExtraIcons.SetBar(i, 0)
else:
self.m_cExtraIcons.SetBar(i, 100)
elif self.m_extraBars[i] == "alwayson":
self.m_cExtraIcons.SetBar(i, 100)
else:
self.m_cExtraIcons.SetBar(i, 0)

Expand Down

0 comments on commit c1402f1

Please sign in to comment.