Only enable youtube caption search when there's more than 10 captions
This commit is contained in:
parent
11dd13b430
commit
f0505a0242
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user