Skip to content

Commit 9e8e872

Browse files
author
Tom Francis
committed
Fixed #6
Added code to clear parent.Controls before adding the set of controls. Without this, (at least on Mono), the instruction order will never show correctly.
1 parent eaa8c55 commit 9e8e872

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Forms/SetupInstructionListBoxPanel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ private void UpdateParent(Control parent, Control[] oldControls)
130130
// Prevent flicker and the like
131131
using (new ControlRedrawLock(parent.Parent))
132132
{
133+
parent.Controls.Clear();
133134
parent.Controls.AddRange(oldControls);
134135

135136
// Brute force scrollbar update

0 commit comments

Comments
 (0)