From b5f943a6d18193c9a86fb668ad851bb653ad4bc3 Mon Sep 17 00:00:00 2001 From: Eric Jeschke Date: Sat, 4 Nov 2023 14:47:07 -1000 Subject: [PATCH] Fix for regenerating cleared thumbnail images in Thumbs plugin --- ginga/rv/Channel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ginga/rv/Channel.py b/ginga/rv/Channel.py index 2064431d6..cff208bb3 100644 --- a/ginga/rv/Channel.py +++ b/ginga/rv/Channel.py @@ -303,7 +303,7 @@ def _add_info(self, info): def add_history(self, imname, path, idx=None, image_loader=None, image_future=None): - if not (imname in self.image_index): + if imname not in self.image_index: if image_loader is None: image_loader = self.fv.load_image @@ -326,6 +326,9 @@ def add_history(self, imname, path, idx=None, # already in history info = self.image_index[imname] + # refresh info, in case anything changed + self.fv.make_async_gui_callback('add-image-info', self, info) + return info def remove_history(self, imname):