Do not render the CustomOption if it's supposed to be invisible

This commit is contained in:
Michael Becker 2014-11-14 10:56:33 -05:00
parent 4c9b303d1c
commit b5cf13a80b

View File

@ -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();