private void TreeAddLibraryItems(object sender, EventArgs e) { // we want to deselect all nodes when toggling library so you can see // them turn blue to get some feedback string[] selectedPaths = pluginUI.Tree.SelectedPaths; pluginUI.Tree.SelectedNodes = null; projectActions.ToggleLibraryAsset(Project, selectedPaths); }