mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 09:35:42 +00:00
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:
commit
4f2eea4158
1 changed files with 2 additions and 2 deletions
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue