You should not use the same approach to grey out the epub3 Tools menu as it is not tied at all to CodeView. Those tools should be available at all times on epub3.
In addition, all of that menu and its contents are protected against being run on epub2 (will warn you and not do anything) and they have been there from Sigil 0.9x betas and are required tools for epub3 users to get a working epub, not optional like the Accessibility Insert Roles ...
So no change there. That menu will stay enabled I think.
|