Avoid null conditional result on awaited call to workaround Mono error

- Issue MatterHackers/MCCentral#283
This commit is contained in:
John Lewin 2016-08-15 13:34:38 -07:00
parent 1ef7bd0b8c
commit 4e83bab707

View file

@ -279,10 +279,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
return printerSettings;
}
else
else if (ApplicationController.GetPrinterProfileAsync != null)
{
// Attempt to load from MCWS if missing on disk
printerSettings = await ApplicationController.GetPrinterProfileAsync?.Invoke (printerInfo, null);
printerSettings = await ApplicationController.GetPrinterProfileAsync(printerInfo, null);
if (printerSettings != null)
{
// If successful, persist downloaded profile and return