Fix chapters not changing when skipping is disabled

This commit is contained in:
Ajay 2024-03-18 20:58:07 -04:00
parent 287233785e
commit 6732850b41

View file

@ -748,6 +748,7 @@ class PreviewBar {
updateChapterText(segments: SponsorTime[], submittingSegments: SponsorTime[], currentTime: number): SponsorTime[] {
if (!Config.config.showSegmentNameInChapterBar
|| Config.config.disableSkipping
|| ((!segments || segments.length <= 0) && submittingSegments?.length <= 0)) {
const chaptersContainer = this.getChaptersContainer();
if (chaptersContainer) {