Delete custom layout if malformed (#6011)

This commit is contained in:
stefansjfw 2020-08-19 18:12:57 +02:00 committed by GitHub
parent 0445e89747
commit 7eccb6fc7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,6 +293,7 @@ namespace FancyZonesEditor.Models
if (error)
{
ShowExceptionMessageBox(string.Format(ErrorLayoutMalformedData, name));
_deletedCustomModels.Add(Guid.Parse(uuid).ToString().ToUpper());
continue;
}
@ -332,6 +333,7 @@ namespace FancyZonesEditor.Models
if (error)
{
ShowExceptionMessageBox(string.Format(ErrorLayoutMalformedData, name));
_deletedCustomModels.Add(Guid.Parse(uuid).ToString().ToUpper());
continue;
}