fix: don't write anything if value is null

This commit is contained in:
Denny09310
2025-11-08 16:45:25 +01:00
parent 14962e1983
commit c0e711940d

View File

@@ -26,9 +26,9 @@ public class TitleBarOverlayConverter : JsonConverter<TitleBarOverlay>
{
if (value is null)
{
writer.WriteNull();
return;
}
var @bool = (bool?)value;
if (@bool.HasValue)
{