Skip to content

Commit

Permalink
[BpBlue] Optimise the panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev0-BH committed Dec 3, 2021
1 parent d31dc6b commit e559159
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/python/Screens/BpBlue.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ def __init__(self, session):
}, -1)

self.emlist = []
self.check_scriptexists()
self.populate_List()
self["list"] = MenuList(self.emlist)
self["lab1"].setText(_("%d CAMs Installed") % (len(self.emlist)))
self.onShow.append(self.updateBP)
self.onShow.append(self.updateBP0)

def updateBP0(self):
self.check_scriptexists()
self.populate_List()
self["list"].setList(self.emlist)
self.updateBP()

def check_scriptexists(self):
if path.exists("/usr/softcams"):
Expand Down Expand Up @@ -198,8 +202,8 @@ def keyOk(self):
system(cmd)
cmd = "STOP_CAMD," + self.defaultcam
self.sendtoBh_sock(cmd)
cmd = self.defaultcam + " stop"
system(cmd)
# cmd = self.defaultcam + " stop"
# system(cmd)

cmd = "NEW_CAMD," + self.newcam
self.sendtoBh_sock(cmd)
Expand Down

0 comments on commit e559159

Please sign in to comment.