Count skips for chapters when viewed

This commit is contained in:
Ajay
2022-10-05 15:39:51 -04:00
parent 8cc3843ada
commit 03cd1b535b
2 changed files with 11 additions and 3 deletions

View File

@@ -719,7 +719,7 @@ class PreviewBar {
}
}
updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): void {
updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): SponsorTime[] {
if (!Config.config.showSegmentNameInChapterBar
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
const chaptersContainer = this.getChaptersContainer();
@@ -740,6 +740,7 @@ class PreviewBar {
});
this.setActiveSegments(activeSegments);
return activeSegments;
}
/**