From fc400560e69b8e7c4302838936372eb5d7d865f6 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Sun, 27 Oct 2024 05:08:22 -0400 Subject: [PATCH] Force a button state reset on update --- IntroSkipper/Configuration/PluginConfiguration.cs | 2 +- IntroSkipper/Controllers/SkipIntroController.cs | 2 +- IntroSkipper/Plugin.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IntroSkipper/Configuration/PluginConfiguration.cs b/IntroSkipper/Configuration/PluginConfiguration.cs index 0b62de1..0a2eb74 100644 --- a/IntroSkipper/Configuration/PluginConfiguration.cs +++ b/IntroSkipper/Configuration/PluginConfiguration.cs @@ -144,7 +144,7 @@ public class PluginConfiguration : BasePluginConfiguration /// /// Gets or sets a value indicating whether to show the skip intro button. /// - public bool SkipButtonVisible { get; set; } = false; + public bool SkipButtonEnabled { get; set; } = false; /// /// Gets a value indicating whether to show the skip intro warning. diff --git a/IntroSkipper/Controllers/SkipIntroController.cs b/IntroSkipper/Controllers/SkipIntroController.cs index dd747de..68b66cb 100644 --- a/IntroSkipper/Controllers/SkipIntroController.cs +++ b/IntroSkipper/Controllers/SkipIntroController.cs @@ -234,7 +234,7 @@ public class SkipIntroController : ControllerBase { var config = Plugin.Instance!.Configuration; return new UserInterfaceConfiguration( - config.SkipButtonVisible, + config.SkipButtonEnabled, config.SkipButtonIntroText, config.SkipButtonEndCreditsText, config.AutoSkip, diff --git a/IntroSkipper/Plugin.cs b/IntroSkipper/Plugin.cs index a81a7ff..8a738f9 100644 --- a/IntroSkipper/Plugin.cs +++ b/IntroSkipper/Plugin.cs @@ -562,7 +562,7 @@ public class Plugin : BasePlugin, IHasWebPages _logger.LogDebug("Reading index.html from {Path}", indexPath); string contents = File.ReadAllText(indexPath); - if (!Instance!.Configuration.SkipButtonVisible) + if (!Instance!.Configuration.SkipButtonEnabled) { pattern = @"