Invoke via RunOnIdle to prevent blocking

- Issue MatterHackers/MCCentral#4639
[Linux] Mouse does not work in export printer dialog
This commit is contained in:
John Lewin 2018-12-13 16:09:52 -08:00
parent 1cffae5f50
commit 375dd22f14
2 changed files with 6 additions and 3 deletions

View file

@ -330,10 +330,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
new NamedAction()
{
Title = "Export All Settings".Localize(),
Action = () =>
Action = () => UiThread.RunOnIdle(() =>
{
ApplicationController.Instance.ExportAsMatterControlConfig(printer);
}
})
},
new ActionSeparator(),
new NamedAction()

View file

@ -3,7 +3,10 @@
"GraphicsMode": {
"Color": 32,
"Depth": 24,
"FSAASamples": 8
"FSAASamples": 8
},
"ProviderTypes": {
"DialogProvider": "MatterHackers.Agg.Platform.GtkFileDialogProvider, PlatformGtk"
}
},
"MatterControl": {