mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 10:19:20 +08:00
[FancyZones Editor] Fix crash on closing after deleting a custom layout. (#13394)
This commit is contained in:
parent
f647223e94
commit
2130cef3a9
@ -419,6 +419,11 @@ namespace FancyZonesEditor
|
||||
{
|
||||
LayoutModel model = element.DataContext as LayoutModel;
|
||||
|
||||
if (model.Guid == _backup.Guid)
|
||||
{
|
||||
_backup = null;
|
||||
}
|
||||
|
||||
if (model == _settings.AppliedModel)
|
||||
{
|
||||
_settings.SetAppliedModel(_settings.BlankModel);
|
||||
|
Loading…
Reference in New Issue
Block a user