recipe name filter
This commit is contained in:
@@ -37,12 +37,21 @@ public class ErrorsVM:IEventHandler<ImageProcessedEvent>, IEventHandler<SessionS
|
||||
{
|
||||
if(!@event.HasError)return;
|
||||
|
||||
string additionalInfo = string.Empty;
|
||||
var errorShortName = _uiConfiguration.ErrorShortNames
|
||||
.FirstOrDefault(x => x.FullName == @event.ErrorNames[0]);
|
||||
|
||||
if (errorShortName != null)
|
||||
{
|
||||
additionalInfo += " ,"+errorShortName.ShortName;
|
||||
}
|
||||
|
||||
ErrorData errorData = new ErrorData
|
||||
{
|
||||
RecipeName = @event.RecipeName,
|
||||
ImageOriginal = @event.ImageOriginal,
|
||||
ImageAnalysis = @event.ImageAnalysis,
|
||||
Title = @event.ErrorNames +" "+ DateTime.Now.ToString("T")
|
||||
Title =DateTime.Now.ToString("G")+ additionalInfo
|
||||
};
|
||||
|
||||
if (Errors.Count >= _uiConfiguration.MaxErrorCount)
|
||||
|
||||
Reference in New Issue
Block a user