Move ContactForm actions to UiThread
This commit is contained in:
parent
2ee46f715f
commit
cf5aeffe4b
1 changed files with 12 additions and 2 deletions
|
|
@ -238,8 +238,18 @@ namespace MatterHackers.MatterControl.ContactForm
|
|||
|
||||
private void AddButtonHandlers()
|
||||
{
|
||||
cancelButton.Click += (sender, e) => { Close(); };
|
||||
doneButton.Click += (sender, e) => { Close(); };
|
||||
cancelButton.Click += (sender, e) => {
|
||||
UiThread.RunOnIdle((state) =>
|
||||
{
|
||||
Close();
|
||||
});
|
||||
};
|
||||
doneButton.Click += (sender, e) => {
|
||||
UiThread.RunOnIdle((state) =>
|
||||
{
|
||||
Close();
|
||||
});
|
||||
};
|
||||
submitButton.Click += new ButtonBase.ButtonEventHandler(SubmitContactForm);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue