Skip to content

Commit

Permalink
Merge pull request #3445 from openatv/IanSav-ServiceScan
Browse files Browse the repository at this point in the history
[ServiceScan.py] Add missing callback
  • Loading branch information
jbleyel authored Oct 27, 2024
2 parents 427a96a + a73fcc8 commit 225479a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/python/Screens/ServiceScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,12 @@ def statusChanged(self):
self.currentSystem = currentSystem
self["FrontendInfo"].frontend_type = currentSystem
self["FrontendInfo"].changed((1,))
self["scan_progress"].setValue(self.scan.getProgress())
progress = self.scan.getProgress()
self["scan_progress"].setValue(progress)
self["network"].setText(transponderType)
self["transponder"].setText(transponderText)
for callback in self.onProgressChanged:
callback(progress)
match self.state:
case self.RUNNING:
percentage = self.scan.getProgress()
Expand Down Expand Up @@ -397,7 +400,7 @@ def createSummary(self):
class ServiceScanSummary(ScreenSummary):
skin = """
<screen name="ServiceScanSummary" title="Service Scan Summary" position="0,0" size="132,64">
<widget name="Title" position="6,4" size="120,42" font="Regular;16" />
<widget source="Title" render="Label" position="6,4" size="120,42" font="Regular;16" />
<widget name="scan_progress" position="6,50" size="56,12" borderWidth="1" />
<widget name="Service" position="6,22" size="120,26" font="Regular;12" />
</screen>"""
Expand Down

0 comments on commit 225479a

Please sign in to comment.