Fixed save_enablewhendirty functionality

Added param check. Save button is now enabled on load if save_enablewhendirty is false. Otherwise, it is hidden until editor.isDirty() is true.
Merge pull request #232 from zlesperance/master

Fixed save_enablewhendirty functionality