mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
Delete custom layout if malformed (#6011)
This commit is contained in:
parent
0445e89747
commit
7eccb6fc7a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user