From d2dc8daaed4f6f543e164d4b6910b1bdb196982d Mon Sep 17 00:00:00 2001 From: rlauuzo <46294892+rlauuzo@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:35:46 +0200 Subject: [PATCH] Add warning and hide option when injection fails (#315) * Add warning and hide option when injection fails * Update configPage.html * Update configPage.html --------- Co-authored-by: rlauu <46294892+rlauu@users.noreply.github.com> --- .../Configuration/PluginConfiguration.cs | 5 +++++ .../Configuration/configPage.html | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index 85e87d5..9ac2e65 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -139,6 +139,11 @@ public class PluginConfiguration : BasePluginConfiguration /// public bool SkipButtonVisible { get; set; } = true; + /// + /// Gets a value indicating whether to show the skip intro warning. + /// + public bool SkipButtonWarning { get => WarningManager.HasFlag(PluginWarning.UnableToAddSkipButton); } + /// /// Gets or sets a value indicating whether introductions should be automatically skipped. /// diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index 5b5eb41..59b8583 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -416,7 +416,11 @@ -
+
+ Failed to add skip button to web interface. See troubleshooting guide for the most common issues. +
+ +
-
+