option to disable empty clips

This commit is contained in:
j 2024-05-17 12:08:29 +02:00
commit 8e32737776
2 changed files with 4 additions and 0 deletions

View file

@ -1559,6 +1559,8 @@ class Item(models.Model):
return icon
def add_empty_clips(self):
if not settings.EMPTY_CLIPS:
return
subtitles = utils.get_by_key(settings.CONFIG['layers'], 'isSubtitles', True)
if not subtitles:
return