From b1e8c066019d78c2f353ae6372cde9c858b829b6 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Wed, 12 Feb 2020 10:14:08 -0500 Subject: [PATCH] Work around an issue with Girder's settings' cache. --- .../girder_large_image_annotation/models/annotation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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): """