Save off the main thread.

This commit is contained in:
Ottermandias 2023-11-24 13:45:18 +01:00
parent cd289247e9
commit c11bd629da
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,8 @@ public class EphemeralConfig : ISavable
public void Save(StreamWriter writer)
{
using var jWriter = new JsonTextWriter(writer) { Formatting = Formatting.Indented };
using var jWriter = new JsonTextWriter(writer);
jWriter.Formatting = Formatting.Indented;
var serializer = new JsonSerializer { Formatting = Formatting.Indented };
serializer.Serialize(jWriter, this);
}

@ -1 +1 @@
Subproject commit 0c50c8d038e4347e6705076f47a89f478666a301
Subproject commit 3a1a3f1a1f2021b063617ac9b294b579a154706e