Avoid null conditional result on awaited call to workaround Mono error
- Issue MatterHackers/MCCentral#283
This commit is contained in:
parent
1ef7bd0b8c
commit
4e83bab707
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue