Skip to content

Commit a126206

Browse files
committed
[FrontPanelLed]
* use new recoding count function
1 parent 23135c8 commit a126206

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/python/Components/FrontPanelLed.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ def checkRecordings(self, service=None, event=iRecordableService.evEnd):
7878
if not self._session:
7979
return
8080
if event == iRecordableService.evEnd:
81-
recordings = self._session.nav.getRecordings()
82-
if not recordings:
83-
FrontPanelLed.stopRecording()
84-
else:
81+
if self._session.nav.getAnyRecordingsCount():
8582
FrontPanelLed.recording()
83+
else:
84+
FrontPanelLed.stopRecording()
8685
elif event == iRecordableService.evStart:
8786
FrontPanelLed.recording()
8887

0 commit comments

Comments
 (0)