Skip plugins which are invalid for the current printer

- Issue MatterHackers/MCCentral#2829
Export dialog should filter non-applicable export plugins
This commit is contained in:
John Lewin 2018-02-13 18:30:17 -08:00
parent 55511875b1
commit b582a83082
6 changed files with 24 additions and 17 deletions

View file

@ -53,10 +53,9 @@ namespace MatterHackers.MatterControl.Library.Export
{
}
public bool EnabledForCurrentPart(ILibraryAssetStream libraryContent)
{
return !libraryContent.IsProtected;
}
public bool Enabled => true;
public bool ExportPossible(ILibraryAsset libraryItem) => true;
public async Task<bool> Generate(IEnumerable<ILibraryItem> libraryItems, string outputPath)
{