Skip to content

Commit

Permalink
refactor(Episodes): only show dropdown menu when clipfiles arrays siz…
Browse files Browse the repository at this point in the history
…e is greather than 1

Signed-off-by: jnelle <[email protected]>
  • Loading branch information
jnelle committed Jun 24, 2024
1 parent ee48270 commit 7b1ff14
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions composeApp/src/commonMain/kotlin/common/screens/EpisodeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ data class EpisodeScreen(
}
}
}
DropdownMenu(
clipFiles,
onChanged = { chosenClip -> chosenQuality.value = chosenClip },
)
if (clipFiles.size > 1)
DropdownMenu(
clipFiles,
onChanged = { chosenClip -> chosenQuality.value = chosenClip },
)


Spacer(Modifier.height(10.dp))
Text(
clip.projectTitle,
Expand Down

0 comments on commit 7b1ff14

Please sign in to comment.