From cc179df4443ae0271358ca02efc5433c0d8e5092 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 18 May 2014 02:03:38 +0000 Subject: [PATCH] put JsonIgnore on some read-only properties in ToolDialogSettings --- BizHawk.Client.Common/config/ToolDialogSettings.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.Common/config/ToolDialogSettings.cs b/BizHawk.Client.Common/config/ToolDialogSettings.cs index f551400df5..16bc38a042 100644 --- a/BizHawk.Client.Common/config/ToolDialogSettings.cs +++ b/BizHawk.Client.Common/config/ToolDialogSettings.cs @@ -1,4 +1,5 @@ using System.Drawing; +using Newtonsoft.Json; namespace BizHawk.Client.Common { @@ -19,6 +20,7 @@ namespace BizHawk.Client.Common public bool TopMost { get; set; } public bool FloatingWindow { get; set; } + [JsonIgnore] public bool UseWindowPosition { get @@ -27,6 +29,7 @@ namespace BizHawk.Client.Common } } + [JsonIgnore] public bool UseWindowSize { get @@ -35,6 +38,7 @@ namespace BizHawk.Client.Common } } + [JsonIgnore] public Point WindowPosition { get @@ -43,6 +47,7 @@ namespace BizHawk.Client.Common } } + [JsonIgnore] public Size WindowSize { get