public void Unregister(UiIconSlot icon) { if (this._activeIcons.Contains(icon)) { this._activeIcons.Remove(icon); } this.RefreshActiveFilters(); }
public void Register(UiIconSlot icon, bool priority) { if (!this._activeIcons.Contains(icon)) { if (priority) { this._activeIcons.Insert(0, icon); } else { this._activeIcons.Add(icon); } } this.RefreshActiveFilters(); }