Fix upcoming notice being shown for disabled categories

Fixes #2296
This commit is contained in:
Ajay
2025-07-02 21:04:02 -04:00
parent 07cd292bee
commit 87c4758089

View File

@@ -816,6 +816,7 @@ async function startSponsorSchedule(includeIntersectingSegments = false, current
if (Config.config.showUpcomingNotice && getCurrentTime() < skippingSegments[0].segment[0]
&& !sponsorTimesSubmitting?.some((segment) => segment.segment === currentSkip.segment)
&& [ActionType.Skip, ActionType.Mute].includes(skippingSegments[0].actionType)
&& getCategorySelection(skippingSegments[0])?.option > CategorySkipOption.ShowOverlay
&& !getVideo()?.paused) {
const maxPopupTime = 3000;
const timeUntilPopup = Math.max(0, offsetDelayTime - maxPopupTime);