Skip to content

Commit 2e7e5cb

Browse files
committed
feat(gui): toggle OCR button with attachments visibility
1 parent 1aedc46 commit 2e7e5cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

basilisk/gui/conversation_tab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,12 @@ def refresh_attachments_list(self):
719719
if not self.attachment_files:
720720
self.attachments_list_label.Hide()
721721
self.attachments_list.Hide()
722+
self.ocr_button.Hide()
722723
self.Layout()
723724
return
724725
self.attachments_list_label.Show()
725726
self.attachments_list.Show()
727+
self.ocr_button.Show()
726728
for attachment in self.attachment_files:
727729
self.attachments_list.Append(attachment.get_display_info())
728730
last_index = len(self.attachment_files) - 1

0 commit comments

Comments
 (0)