fix: remove swaps using deleted layouts

This commit is contained in:
Anna 2021-03-13 19:31:45 -05:00
parent 29944dcd3e
commit 8885326756
1 changed files with 2 additions and 0 deletions

View File

@ -841,6 +841,8 @@ namespace HUD_Manager {
}
}
this.Plugin.Config.HudConditionMatches.RemoveAll(match => match.LayoutId == this._selectedEditLayout);
this.Plugin.Config.Layouts.Remove(this._selectedEditLayout);
this._selectedEditLayout = Guid.Empty;
this.Plugin.Config.Save();