mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 06:53:26 +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;
|
LayoutModel model = element.DataContext as LayoutModel;
|
||||||
|
|
||||||
|
if (model.Guid == _backup.Guid)
|
||||||
|
{
|
||||||
|
_backup = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (model == _settings.AppliedModel)
|
if (model == _settings.AppliedModel)
|
||||||
{
|
{
|
||||||
_settings.SetAppliedModel(_settings.BlankModel);
|
_settings.SetAppliedModel(_settings.BlankModel);
|
||||||
|
Loading…
Reference in New Issue
Block a user