disable export if printer not setup

show reason why export is disabled

issue: MatterHackers/MCCentral#4573
Export should follow the same rules as printer/setup buttons
This commit is contained in:
Lars Brubaker 2018-11-29 17:35:08 -08:00
parent 33d4ed529c
commit 726b14f9c0
9 changed files with 66 additions and 8 deletions

View file

@ -57,6 +57,8 @@ namespace MatterHackers.MatterControl.Library.Export
public bool Enabled => true;
public string DissabledReason => "";
public bool ExportPossible(ILibraryAsset libraryItem) => true;
public async Task<bool> Generate(IEnumerable<ILibraryItem> libraryItems, string outputPath, IProgress<ProgressStatus> progress, CancellationToken cancellationToken)