feat: enable all ExtraChat channels by default

This commit is contained in:
Anna 2022-08-27 13:47:07 -04:00
parent 7dc83bb8a2
commit 094a627a57
1 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace ChatTwo;
[Serializable] [Serializable]
internal class Configuration : IPluginConfiguration { internal class Configuration : IPluginConfiguration {
private const int LatestVersion = 4; private const int LatestVersion = 5;
public int Version { get; set; } = LatestVersion; public int Version { get; set; } = LatestVersion;
@ -111,6 +111,14 @@ internal class Configuration : IPluginConfiguration {
this.Version = 4; this.Version = 4;
this.WindowAlpha *= 100f; this.WindowAlpha *= 100f;
break;
case 4:
this.Version = 5;
foreach (var tab in this.Tabs) {
tab.ExtraChatAll = true;
}
break; break;
default: default:
PluginLog.Warning($"Couldn't migrate config version {this.Version}"); PluginLog.Warning($"Couldn't migrate config version {this.Version}");