Skip to content

Commit

Permalink
fix: prevent caption widget from opening by default
Browse files Browse the repository at this point in the history
  • Loading branch information
healthonrails committed Nov 18, 2024
1 parent e7d9437 commit bde669b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions annolid/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,9 +1323,8 @@ def setDirty(self):

def getTitle(self, clean=True):
title = __appname__
if self.caption_widget is None:
self.openCaption()
self.caption_widget.set_image_path(self.filename)
if self.caption_widget is not None:
self.caption_widget.set_image_path(self.filename)
_filename = os.path.basename(self.filename)
if self.video_loader:
if self.frame_number:
Expand Down

0 comments on commit bde669b

Please sign in to comment.