feat(config): bump schema v17 to v18
This commit is contained in:
@@ -34,7 +34,7 @@ public class ConfigKeyBind
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class Configuration : IPluginConfiguration
|
public class Configuration : IPluginConfiguration
|
||||||
{
|
{
|
||||||
private const int LatestVersion = 17;
|
private const int LatestVersion = 18;
|
||||||
|
|
||||||
public int Version { get; set; } = LatestVersion;
|
public int Version { get; set; } = LatestVersion;
|
||||||
|
|
||||||
|
|||||||
@@ -198,10 +198,12 @@ public sealed class Plugin : IAsyncDalamudPlugin
|
|||||||
// point (MigrateFromChatTwoLayout, LanguageChanged, ImGuiUtil.Initialize)
|
// point (MigrateFromChatTwoLayout, LanguageChanged, ImGuiUtil.Initialize)
|
||||||
// do not touch either static, so the brief null-window is safe.
|
// do not touch either static, so the brief null-window is safe.
|
||||||
|
|
||||||
// Schema gate: v1.4.x requires config v16+. Users on older schemas
|
// 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
|
// must install v1.4.2 first to run the migration chain. v18 adds the
|
||||||
// Tab.IsPinned (additive, no data migration needed) so v16 configs
|
// per-tab EnableNotificationSound + NotificationSoundId fields (UI-3)
|
||||||
// load cleanly and get their Version stamp bumped after the gate.
|
// 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)
|
if (Config.Version < 16)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException(
|
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."
|
+ "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
|
// Unpinned TempTabs are session-only and dropped on every load. Pinned
|
||||||
// TempTabs survive reload — Jin's tester feedback (v1.4.7).
|
// TempTabs survive reload — Jin's tester feedback (v1.4.7).
|
||||||
|
|||||||
Reference in New Issue
Block a user