flip logic
This commit is contained in:
parent
ee336646c1
commit
514674bb02
@ -88,17 +88,17 @@ public class SkipIntroController : ControllerBase
|
|||||||
|
|
||||||
var config = Plugin.Instance!.Configuration;
|
var config = Plugin.Instance!.Configuration;
|
||||||
if (config.PersistSkipButton)
|
if (config.PersistSkipButton)
|
||||||
|
{
|
||||||
|
segment.ShowSkipPromptAt = segment.IntroStart;
|
||||||
|
segment.HideSkipPromptAt = segment.IntroEnd;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
segment.ShowSkipPromptAt = Math.Max(0, segment.IntroStart - config.ShowPromptAdjustment);
|
segment.ShowSkipPromptAt = Math.Max(0, segment.IntroStart - config.ShowPromptAdjustment);
|
||||||
segment.HideSkipPromptAt = Math.Min(
|
segment.HideSkipPromptAt = Math.Min(
|
||||||
segment.IntroStart + config.HidePromptAdjustment,
|
segment.IntroStart + config.HidePromptAdjustment,
|
||||||
segment.IntroEnd);
|
segment.IntroEnd);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
segment.ShowSkipPromptAt = segment.IntroStart;
|
|
||||||
segment.HideSkipPromptAt = segment.IntroEnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
segment.IntroEnd -= config.SecondsOfIntroToPlay;
|
segment.IntroEnd -= config.SecondsOfIntroToPlay;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user