From bde669b7187ea223576d453f9fad641cb72babb2 Mon Sep 17 00:00:00 2001 From: healthonrails Date: Mon, 18 Nov 2024 18:06:55 -0500 Subject: [PATCH] fix: prevent caption widget from opening by default --- annolid/gui/app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/annolid/gui/app.py b/annolid/gui/app.py index cdd93d6..beb6afc 100644 --- a/annolid/gui/app.py +++ b/annolid/gui/app.py @@ -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: