From f0505a02422bbce4158aa2ce63911af682732c50 Mon Sep 17 00:00:00 2001 From: jeffser Date: Mon, 12 Aug 2024 18:55:06 -0600 Subject: [PATCH] Only enable youtube caption search when there's more than 10 captions --- src/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 452a2aa..30e7ab4 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -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(