default true for auto-igc setting

This commit is contained in:
ggurdin 2024-09-10 12:09:51 -04:00
parent e63be7e7fa
commit 04db40f7ea
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -128,7 +128,7 @@ class UserToolSettings {
this.interactiveGrammar = true,
this.immersionMode = false,
this.definitions = true,
this.autoIGC = false,
this.autoIGC = true,
});
factory UserToolSettings.fromJson(Map<String, dynamic> json) =>
@ -139,7 +139,7 @@ class UserToolSettings {
json[ToolSetting.interactiveGrammar.toString()] ?? true,
immersionMode: json[ToolSetting.immersionMode.toString()] ?? false,
definitions: json[ToolSetting.definitions.toString()] ?? true,
autoIGC: json[ToolSetting.autoIGC.toString()] ?? false,
autoIGC: json[ToolSetting.autoIGC.toString()] ?? true,
);
Map<String, dynamic> toJson() {
@ -174,7 +174,7 @@ class UserToolSettings {
true,
autoIGC: (accountData[ToolSetting.autoIGC.toString()]
?.content[ToolSetting.autoIGC.toString()] as bool?) ??
false,
true,
);
}
}