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