From 960ce980d39365ae312c3144b0cd4016af35c0ed Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 02:25:13 +0200 Subject: [PATCH] Bump configuration version to 8 with a webinterface-removal notice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The webinterface fields are gone from the Configuration class so any existing entries (WebinterfacePassword, AuthStore, WebinterfacePort and friends) get dropped on the next save automatically — Newtonsoft silently skips properties the target type does not declare. The version bump itself is what stops the one-shot notification from firing on every launch. A new pair of HellionStrings entries (EN + DE) explains the change to users coming from 0.1.x. Title: "Hellion Chat 0.2.0", body points at the README for context. Notification fires once per upgrade. --- ChatTwo/Configuration.cs | 2 +- ChatTwo/Plugin.cs | 19 +++++++++++++++++++ ChatTwo/Resources/HellionStrings.Designer.cs | 2 ++ ChatTwo/Resources/HellionStrings.de.resx | 6 ++++++ ChatTwo/Resources/HellionStrings.resx | 6 ++++++ 5 files changed, 34 insertions(+), 1 deletion(-) diff --git a/ChatTwo/Configuration.cs b/ChatTwo/Configuration.cs index efe4c5d..44fcb95 100755 --- a/ChatTwo/Configuration.cs +++ b/ChatTwo/Configuration.cs @@ -33,7 +33,7 @@ public class ConfigKeyBind [Serializable] public class Configuration : IPluginConfiguration { - private const int LatestVersion = 7; + private const int LatestVersion = 8; public int Version { get; set; } = LatestVersion; diff --git a/ChatTwo/Plugin.cs b/ChatTwo/Plugin.cs index 21cd5f7..e3c90ea 100755 --- a/ChatTwo/Plugin.cs +++ b/ChatTwo/Plugin.cs @@ -139,6 +139,25 @@ public sealed class Plugin : IDalamudPlugin }); } + // Hellion Chat v7→v8: webinterface removed in 0.2.0. Old config + // entries (WebinterfacePassword, AuthStore, etc.) get dropped on + // the next save because their properties no longer exist on the + // Configuration class. The bump is recorded so the notification + // only fires once. + if (Config.Version <= 7) + { + Config.Version = 8; + SaveConfig(); + + Notification.AddNotification(new Dalamud.Interface.ImGuiNotification.Notification + { + Title = HellionStrings.Migration_Webinterface_Removed_Title, + Content = HellionStrings.Migration_Webinterface_Removed_Content, + Type = Dalamud.Interface.ImGuiNotification.NotificationType.Info, + InitialDuration = TimeSpan.FromSeconds(20), + }); + } + if (Config.Tabs.Count == 0) Config.Tabs.Add(TabsUtil.VanillaGeneral); diff --git a/ChatTwo/Resources/HellionStrings.Designer.cs b/ChatTwo/Resources/HellionStrings.Designer.cs index 717f1c1..93b6f39 100644 --- a/ChatTwo/Resources/HellionStrings.Designer.cs +++ b/ChatTwo/Resources/HellionStrings.Designer.cs @@ -99,6 +99,8 @@ internal class HellionStrings internal static string Migration_Notification_Title => Get(nameof(Migration_Notification_Title)); internal static string Migration_Notification_Content => Get(nameof(Migration_Notification_Content)); + internal static string Migration_Webinterface_Removed_Title => Get(nameof(Migration_Webinterface_Removed_Title)); + internal static string Migration_Webinterface_Removed_Content => Get(nameof(Migration_Webinterface_Removed_Content)); internal static string Wizard_Title => Get(nameof(Wizard_Title)); internal static string Wizard_Intro => Get(nameof(Wizard_Intro)); diff --git a/ChatTwo/Resources/HellionStrings.de.resx b/ChatTwo/Resources/HellionStrings.de.resx index f293e5c..16f5215 100644 --- a/ChatTwo/Resources/HellionStrings.de.resx +++ b/ChatTwo/Resources/HellionStrings.de.resx @@ -177,6 +177,12 @@ Datenschutz-Filter ist standardmäßig aktiviert. Einstellungen → Datenschutz zum Anpassen. + + Hellion Chat 0.2.0 + + + Das Webinterface wurde in dieser Version entfernt, weil es nicht auf das Datenschutz-Niveau gehärtet werden konnte das Hellion Chat standardmäßig zusichert. Falls du es genutzt hast, schau bitte in die README für Hintergründe. + Hellion Chat — Willkommen diff --git a/ChatTwo/Resources/HellionStrings.resx b/ChatTwo/Resources/HellionStrings.resx index 37c6ad0..a3184ea 100644 --- a/ChatTwo/Resources/HellionStrings.resx +++ b/ChatTwo/Resources/HellionStrings.resx @@ -177,6 +177,12 @@ Privacy filter activated by default. Settings → Privacy to adjust. + + Hellion Chat 0.2.0 + + + The webinterface has been removed in this version because it could not be hardened to the privacy guarantees Hellion Chat makes by default. If you used it, please consult the README for context. + Hellion Chat — Welcome