feat(config): bump schema v17 to v18

This commit is contained in:
2026-05-21 09:20:21 +02:00
parent a46d89c197
commit 2e81c42e3b
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ public class ConfigKeyBind
[Serializable]
public class Configuration : IPluginConfiguration
{
private const int LatestVersion = 17;
private const int LatestVersion = 18;
public int Version { get; set; } = LatestVersion;
+7 -5
View File
@@ -198,10 +198,12 @@ public sealed class Plugin : IAsyncDalamudPlugin
// point (MigrateFromChatTwoLayout, LanguageChanged, ImGuiUtil.Initialize)
// do not touch either static, so the brief null-window is safe.
// Schema gate: v1.4.x requires config v16+. Users on older schemas
// must install v1.4.2 first to run the migration chain. v17 adds
// Tab.IsPinned (additive, no data migration needed) so v16 configs
// load cleanly and get their Version stamp bumped after the gate.
// Schema gate: v1.4.x+ requires config v16+. Users on older schemas
// must install v1.4.2 first to run the migration chain. v18 adds the
// per-tab EnableNotificationSound + NotificationSoundId fields (UI-3)
// and the top-level NotifyFailedTell flag (UI-2) — all additive with
// defaults, so v16/v17 configs load cleanly and get their Version
// stamp bumped after the gate.
if (Config.Version < 16)
{
throw new InvalidOperationException(
@@ -209,7 +211,7 @@ public sealed class Plugin : IAsyncDalamudPlugin
+ "Please install v1.4.2 first to migrate the configuration, then upgrade to v1.4.10."
);
}
Config.Version = 17;
Config.Version = 18;
// Unpinned TempTabs are session-only and dropped on every load. Pinned
// TempTabs survive reload — Jin's tester feedback (v1.4.7).