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 = @"