Zero and reset remaining intro time

This commit is contained in:
TwistedUmbrellaX 2024-11-29 15:42:35 -05:00
parent 3139c15eb1
commit e710efe961
2 changed files with 4 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public class PluginConfiguration : BasePluginConfiguration
/// <summary> /// <summary>
/// Gets or sets the amount of intro to play (in seconds). /// Gets or sets the amount of intro to play (in seconds).
/// </summary> /// </summary>
public int RemainingSecondsOfIntro { get; set; } = 2; public int RemainingSecondsOfIntro { get; set; };
/// <summary> /// <summary>
/// Gets or sets the amount of intro at start to play (in seconds). /// Gets or sets the amount of intro at start to play (in seconds).

View File

@ -935,6 +935,8 @@
persistSkip.addEventListener("change", persistSkipChanged); persistSkip.addEventListener("change", persistSkipChanged);
var remainingSecondsOfIntro = document.getElementById("RemainingSecondsOfIntro")
async function pluginSkipSettingChanged() { async function pluginSkipSettingChanged() {
if (pluginSkip.checked) { if (pluginSkip.checked) {
serverSkipSettings.style.display = "unset"; serverSkipSettings.style.display = "unset";
@ -944,6 +946,7 @@
autoSkip.checked = false; autoSkip.checked = false;
skipButtonVisible.checked = false; skipButtonVisible.checked = false;
persistSkip.checked = false; persistSkip.checked = false;
remainingSecondsOfIntro.value = 0;
} }
} }