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
|
|
@ -344,7 +344,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
}
|
||||
catch (System.UnauthorizedAccessException)
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
//Do something special when unauthorized?
|
||||
StyledMessageBox.ShowMessageBox(null, "Oops! Unable to save changes, unauthorized access", "Unable to save");
|
||||
|
|
@ -352,7 +352,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
}
|
||||
catch
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
StyledMessageBox.ShowMessageBox(null, "Oops! Unable to save changes.", "Unable to save");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue