diff --git a/girder_annotation/girder_large_image_annotation/models/annotation.py b/girder_annotation/girder_large_image_annotation/models/annotation.py index dd2b27db6..24cbc8d09 100644 --- a/girder_annotation/girder_large_image_annotation/models/annotation.py +++ b/girder_annotation/girder_large_image_annotation/models/annotation.py @@ -502,10 +502,8 @@ def _copyAnnotationsFromOtherItem(self, srcItemId, destItem): def _onSettingChange(self, event): settingDoc = event.info - if settingDoc['key'] in ( - constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY, ): - self._historyEnabled = Setting().get( - constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY) + if settingDoc['key'] == constants.PluginSettings.LARGE_IMAGE_ANNOTATION_HISTORY: + self._historyEnabled = settingDoc['value'] def _loadAndMigrateAnnotation(self, id, *args, **kwargs): """