UI thread is more explicit about what functions it accepts and now accepts no parameter functions.
This commit is contained in:
parent
42568cc0f1
commit
5cc1b651b4
69 changed files with 270 additions and 269 deletions
|
|
@ -172,10 +172,7 @@ namespace MatterHackers.MatterControl
|
|||
Button cancelPresetsButton = textImageButtonFactory.Generate(LocalizedString.Get("Cancel"));
|
||||
cancelPresetsButton.Click += (sender, e) =>
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
{
|
||||
Close();
|
||||
});
|
||||
UiThread.RunOnIdle(Close);
|
||||
};
|
||||
|
||||
FlowLayoutWidget buttonRow = new FlowLayoutWidget();
|
||||
|
|
@ -199,7 +196,7 @@ namespace MatterHackers.MatterControl
|
|||
UiThread.RunOnIdle(DoSave_Click);
|
||||
}
|
||||
|
||||
private void DoSave_Click(object state)
|
||||
private void DoSave_Click()
|
||||
{
|
||||
bool first = true;
|
||||
StringBuilder settingString = new StringBuilder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue