1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

only show audio when its available

This commit is contained in:
Jorrin 2024-03-24 01:04:11 +01:00
parent c08dea89d1
commit 6ba53ec29a
2 changed files with 10 additions and 7 deletions

View file

@ -294,6 +294,7 @@
"enableSubtitles": "Enable Subtitles",
"experienceSection": "Viewing experience",
"playbackItem": "Playback settings",
"audioItem": "Audio",
"qualityItem": "Quality",
"sourceItem": "Video sources",
"subtitleItem": "Subtitle settings",

View file

@ -52,13 +52,15 @@ export function SettingsMenu({ id }: { id: string }) {
>
{t("player.menus.settings.qualityItem")}
</Menu.ChevronLink>
{currentAudioTrack && (
<Menu.ChevronLink
onClick={() => router.navigate("/audio")}
rightText={currentAudioTrack ? currentAudioTrack.label : ""}
>
{/* {t("player.menus.settings.qualityItem")} */}
Audio
{t("player.menus.settings.audioItem")}
</Menu.ChevronLink>
)}
<Menu.ChevronLink
onClick={() => router.navigate("/source")}
rightText={sourceName}