When building a GUI extension it’s best to only show your functionality when relevant, this behaviour starts with the buttons you add to the Ribbon Toolbar and the Context Menu.
In this third Alchemy Training video I demonstrate how to update the Plugin Command file limit when the plugin is available in the context menu and ribbon toolbar.
Alchemy Training Video 3: Ribbon and Context Menu functionality from Content Bloom.