"Add to Library" is dimmed! Why?

I don't know. It works fine here, with your exact code. See project attached.

TestLibraryManager.zip (5.9 KB)