Synchronize the menu activation state with document meta data

Requires adobe-photoshop/generator#49