Fix UI setup bug.

This commit is contained in:
Michael 2017-04-14 19:08:25 -04:00
parent 6ec8e375c4
commit 0bc8eef195

View file

@ -146,7 +146,6 @@ namespace ShiftOS.WinForms.Tools
{
Desktop.InvokeOnWorkerThread(new Action(() =>
{
SuspendDrawing(ctrl);
ctrl.SuspendLayout();
}));
if (!(ctrl is MenuStrip) && !(ctrl is ToolStrip) && !(ctrl is StatusStrip) && !(ctrl is ContextMenuStrip))
@ -247,7 +246,6 @@ namespace ShiftOS.WinForms.Tools
MakeDoubleBuffered(ctrl);
ctrl.ResumeLayout();
ResumeDrawing(ctrl);
});
ControlSetup?.Invoke(ctrl);
}