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:
parent
55511875b1
commit
b582a83082
6 changed files with 24 additions and 17 deletions
|
|
@ -52,10 +52,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 Task<bool> Generate(IEnumerable<ILibraryItem> libraryItems, string outputPath)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue