Making error messages coming back as list

fixing regression with dialog window showing as markdown (there were
assumptions on it not being markdown)
This commit is contained in:
Lars Brubaker 2019-01-03 16:58:05 -08:00
parent 45b1a32e03
commit 34b57c43b0
13 changed files with 127 additions and 141 deletions

View file

@ -61,7 +61,7 @@ namespace MatterHackers.MatterControl.Library.Export
public bool ExportPossible(ILibraryAsset libraryItem) => true;
public async Task<ExportResult> Generate(IEnumerable<ILibraryItem> libraryItems, string outputPath, IProgress<ProgressStatus> progress, CancellationToken cancellationToken)
public async Task<List<string>> Generate(IEnumerable<ILibraryItem> libraryItems, string outputPath, IProgress<ProgressStatus> progress, CancellationToken cancellationToken)
{
var streamItems = libraryItems.OfType<ILibraryAssetStream>();
if (streamItems.Any())
@ -89,10 +89,10 @@ namespace MatterHackers.MatterControl.Library.Export
}
});
return ExportResult.Success;
return null;
}
return ExportResult.Failure;
return new List<string>() { "No items to Export".Localize() };
}
}
}