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
|
|
@ -30,7 +30,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private bool addPrinter_Click()
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
ConnectionWindow.Show();
|
||||
});
|
||||
|
|
@ -39,7 +39,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private bool importFile_Click()
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
FileDialog.OpenFileDialog(
|
||||
new OpenFileDialogParams(ApplicationSettings.OpenPrintableFileParams)
|
||||
|
|
@ -67,7 +67,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private bool exit_Click()
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
GuiWidget parent = this;
|
||||
while (parent as MatterControlApplication == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue