From 07f47f32e3dd06ca85f2c71a045cf2d2d29e322d Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 12:40:22 +0200 Subject: [PATCH] feat(auto-tell-tabs): bump configuration version to 9 with migration notice --- ChatTwo/Configuration.cs | 2 +- ChatTwo/Plugin.cs | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChatTwo/Configuration.cs b/ChatTwo/Configuration.cs index 37abad3..f10c3f0 100755 --- a/ChatTwo/Configuration.cs +++ b/ChatTwo/Configuration.cs @@ -34,7 +34,7 @@ public class ConfigKeyBind [Serializable] public class Configuration : IPluginConfiguration { - private const int LatestVersion = 8; + private const int LatestVersion = 9; public int Version { get; set; } = LatestVersion; diff --git a/ChatTwo/Plugin.cs b/ChatTwo/Plugin.cs index 92a1c74..04ef3a0 100755 --- a/ChatTwo/Plugin.cs +++ b/ChatTwo/Plugin.cs @@ -173,6 +173,26 @@ public sealed class Plugin : IDalamudPlugin }); } + // Hellion Chat v8→v9: Auto-Tell-Tabs feature seeded with + // property-initializer defaults (enabled, limit 15, history 20, + // section header on). No data migration needed — just bump the + // version and notify the user once so the feature does not + // surprise them. + if (Config.Version <= 8) + { + Config.Version = 9; + SaveConfig(); + + // TODO Task 14: replace with HellionStrings.AutoTellTabs_Migration_Title / _Content + Notification.AddNotification(new Dalamud.Interface.ImGuiNotification.Notification + { + Title = "Auto-Tell-Tabs", + Content = "Auto-Tell-Tabs sind ab Version 0.4.0 standardmäßig aktiv. Du kannst sie im Chat-Tab deaktivieren oder anpassen.", + Type = Dalamud.Interface.ImGuiNotification.NotificationType.Info, + InitialDuration = TimeSpan.FromSeconds(20), + }); + } + if (Config.Tabs.Count == 0) Config.Tabs.Add(TabsUtil.VanillaGeneral);