FIx skip to highlight button still showing when highlight disabled

#2292
This commit is contained in:
Ajay
2025-06-25 02:22:55 -04:00
parent 6ad146e93d
commit fa7b9eee01

View File

@@ -1355,7 +1355,9 @@ function startSkipScheduleCheckingForStartSponsors() {
// For highlight category // For highlight category
const poiSegments = sponsorTimes const poiSegments = sponsorTimes
.filter((time) => time.segment[1] > getCurrentTime() .filter((time) => time.segment[1] > getCurrentTime()
&& time.actionType === ActionType.Poi && time.hidden === SponsorHideType.Visible) && time.actionType === ActionType.Poi
&& time.hidden === SponsorHideType.Visible
&& getCategorySelection(time).option !== CategorySkipOption.Disabled)
.sort((a, b) => b.segment[0] - a.segment[0]); .sort((a, b) => b.segment[0] - a.segment[0]);
for (const time of poiSegments) { for (const time of poiSegments) {
const skipOption = getCategorySelection(time)?.option; const skipOption = getCategorySelection(time)?.option;