From e710efe961121684c575efdf383677eb6230f4c9 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Fri, 29 Nov 2024 15:42:35 -0500 Subject: [PATCH] Zero and reset remaining intro time --- IntroSkipper/Configuration/PluginConfiguration.cs | 2 +- IntroSkipper/Configuration/configPage.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IntroSkipper/Configuration/PluginConfiguration.cs b/IntroSkipper/Configuration/PluginConfiguration.cs index 3bcf221..647c220 100644 --- a/IntroSkipper/Configuration/PluginConfiguration.cs +++ b/IntroSkipper/Configuration/PluginConfiguration.cs @@ -227,7 +227,7 @@ public class PluginConfiguration : BasePluginConfiguration /// /// Gets or sets the amount of intro to play (in seconds). /// - public int RemainingSecondsOfIntro { get; set; } = 2; + public int RemainingSecondsOfIntro { get; set; }; /// /// Gets or sets the amount of intro at start to play (in seconds). diff --git a/IntroSkipper/Configuration/configPage.html b/IntroSkipper/Configuration/configPage.html index fb6c2b9..e0ea105 100644 --- a/IntroSkipper/Configuration/configPage.html +++ b/IntroSkipper/Configuration/configPage.html @@ -935,6 +935,8 @@ persistSkip.addEventListener("change", persistSkipChanged); + var remainingSecondsOfIntro = document.getElementById("RemainingSecondsOfIntro") + async function pluginSkipSettingChanged() { if (pluginSkip.checked) { serverSkipSettings.style.display = "unset"; @@ -944,6 +946,7 @@ autoSkip.checked = false; skipButtonVisible.checked = false; persistSkip.checked = false; + remainingSecondsOfIntro.value = 0; } }