Skip to content

Commit

Permalink
Fix crash when demo window is closed within two seconds of startup
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertie committed Jan 10, 2017
1 parent fd2c6c6 commit bf555c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Main/LeMP/DemoWindow/LempDemoPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ private void AutoRunLemp()
public void ShowOutput(string text)
{
InvokeIfRequired(txt => {
_outEditor.Text = txt;
_outEditor.Refresh(); // bug fix: area below EOF doesn't clear by itself
if (!IsDisposed) {
_outEditor.Text = txt;
_outEditor.Refresh(); // bug fix: area below EOF doesn't clear by itself
}
}, text);
}
public void InvokeIfRequired<T>(Action<T> action, T value)
Expand Down

0 comments on commit bf555c7

Please sign in to comment.