From 43497b9593d4924ea776cf669fa44cfc888cdaa0 Mon Sep 17 00:00:00 2001
From: rom4nik <46846000+rom4nik@users.noreply.github.com>
Date: Wed, 22 Jul 2020 21:13:55 +0200
Subject: [PATCH] Fix required track count for subtitle selector to appear
---
src/controllers/itemDetails/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js
index cf5549f709..a14fa08aa4 100644
--- a/src/controllers/itemDetails/index.js
+++ b/src/controllers/itemDetails/index.js
@@ -251,7 +251,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
return 'Video' === m.Type;
});
- // This only makes sence on Video items
+ // This only makes sense on Video items
if (videoTracks.length) {
var selected = -1 === selectedId ? ' selected' : '';
select.innerHTML = '' + tracks.map(function (v) {
@@ -259,7 +259,7 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
return '';
}).join('');
- if (tracks.length > 1) {
+ if (tracks.length > 0) {
select.removeAttribute('disabled');
} else {
select.setAttribute('disabled', 'disabled');