Merge pull request #550 from chrisk325/patch-4

qol: only disable/dim the audio track button when 0 tracks are available
This commit is contained in:
Nayif 2026-02-28 08:05:53 +05:30 committed by GitHub
commit 4f2eea4158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -632,9 +632,9 @@ export const PlayerControls: React.FC<PlayerControlsProps> = ({
<TouchableOpacity
style={styles.iconButton}
onPress={() => setShowAudioModal(true)}
disabled={ksAudioTracks.length <= 1}
disabled={ksAudioTracks.length < 1}
>
{ksAudioTracks.length <= 1 ? (
{ksAudioTracks.length < 1 ? (
<PlayerAudioOutlineIcon width={24} height={24} opacity={0.55} />
) : (
<PlayerAudioFilledIcon width={24} height={24} />