Enable/disable the Duplicate menu item depending on whether the current file is modified.