From b5cf13a80b507cd4d80c1c0155e23d688ab150db Mon Sep 17 00:00:00 2001 From: alcexhim Date: Fri, 14 Nov 2014 10:56:33 -0500 Subject: [PATCH] Do not render the CustomOption if it's supposed to be invisible --- .../Dialogs/CustomOptionsDialog.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs index 38459475..1dc2da55 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/CustomOptionsDialog.cs @@ -38,6 +38,9 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs foreach (CustomOption eo in mvarCustomOptions) { + // do not render the CustomOption if it's supposed to be invisible + if (!eo.Visible) continue; + if (!(eo is CustomOptionBoolean)) { Label lbl = new Label();