Skip to content

Commit

Permalink
Fix for regenerating cleared thumbnail images in Thumbs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Nov 5, 2023
1 parent a340418 commit b5f943a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ginga/rv/Channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit b5f943a

Please sign in to comment.