From 8c6c40166465235b60e2deb39c9aa9920aaaac12 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sun, 15 Dec 2019 05:37:33 -0500 Subject: [PATCH] don't forget to set the checkbox default value --- .../UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs index 8eb59840..72e54f58 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/CustomOptionsDialog.cs @@ -145,6 +145,7 @@ namespace UniversalEditor.UserInterface.Dialogs CustomOptionBoolean option = (eo as CustomOptionBoolean); CheckBox chk = new CheckBox(); + chk.Checked = option.DefaultValue; chk.Text = option.Title; this.Controls.Add(chk, new GridLayout.Constraints(iRow, 0, 1, 2, ExpandMode.Horizontal));