Only enable youtube caption search when there's more than 10 captions

This commit is contained in:
jeffser 2024-08-12 18:55:06 -06:00
parent 11dd13b430
commit f0505a0242

View File

@ -350,7 +350,7 @@ def youtube_caption(self, video_url):
for caption in captions:
caption_list.append("{} | {}".format(caption.name, caption.code))
caption_drop_down = Gtk.DropDown(
enable_search=True,
enable_search=len(captions) > 10,
model=caption_list
)
dialog = Adw.AlertDialog(