changing the enum value using the drop down menu will trigger callback function only once

please review this pull request because I deleted EnumEditor::update_value(self, val)
This is probably not the nicest way to do it