Fixed a bug when deleted settings are still editing
This commit is contained in:
parent
31696e019f
commit
16dc3eadc2
1 changed files with 10 additions and 0 deletions
|
|
@ -135,6 +135,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
};
|
||||
|
||||
if (presetsContext.PersistenceLayer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var editMaterialPresetsPage = new SlicePresetsPage(printer, presetsContext);
|
||||
editMaterialPresetsPage.Closed += (s, e2) =>
|
||||
{
|
||||
|
|
@ -176,6 +181,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
};
|
||||
|
||||
if (presetsContext.PersistenceLayer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var editQualityPresetsWindow = new SlicePresetsPage(printer, presetsContext);
|
||||
editQualityPresetsWindow.Closed += (s, e2) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue