flip logic

This commit is contained in:
Kilian von Pflugk 2024-03-01 18:29:37 +01:00
parent ee336646c1
commit 514674bb02

View File

@ -88,17 +88,17 @@ public class SkipIntroController : ControllerBase
var config = Plugin.Instance!.Configuration;
if (config.PersistSkipButton)
{
segment.ShowSkipPromptAt = segment.IntroStart;
segment.HideSkipPromptAt = segment.IntroEnd;
}
else
{
segment.ShowSkipPromptAt = Math.Max(0, segment.IntroStart - config.ShowPromptAdjustment);
segment.HideSkipPromptAt = Math.Min(
segment.IntroStart + config.HidePromptAdjustment,
segment.IntroEnd);
}
else
{
segment.ShowSkipPromptAt = segment.IntroStart;
segment.HideSkipPromptAt = segment.IntroEnd;
}
segment.IntroEnd -= config.SecondsOfIntroToPlay;