Automatically refresh disabled state of menu entries. #99