Rather than including in the ribbon code the Enabled=True, you need to use the attribute getEnabled and include a callback macro to work out whether the button is enabled or not
See
Confused over getEnabled for Ribbon
Note that when fiddling with code AFTER the ribbon has loaded, you may discover the updated code doesn't execute. Either reload the ribbon or close/reopen the document containing the ribbon to ensure the code is working.