Skip to content

Commit 6f3b345

Browse files
fix: info tab not correctly hidden if unselected in channel tabs
1 parent e55d62a commit 6f3b345

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

library/src/commonMain/kotlin/project/pipepipe/app/ui/screens/ChannelScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ fun ChannelScreen(
101101
}
102102
val tabTypes = remember(tabs, hasDescription, filterShorts, showChannelTabsSettings) {
103103
val types = tabs.map { it.type }.toMutableList()
104+
if (hasDescription) {
105+
types.add(ChannelTabType.INFO)
106+
}
104107

105108
// Filter based on user preferences
106109
types.retainAll { tabType ->
@@ -118,9 +121,6 @@ fun ChannelScreen(
118121
if (filterShorts) {
119122
types.removeAll { it == ChannelTabType.SHORTS }
120123
}
121-
if (hasDescription) {
122-
types.add(ChannelTabType.INFO)
123-
}
124124
types
125125
}
126126
val tabTitles = remember(tabTypes) { tabTypes.map { it.name } }

0 commit comments

Comments
 (0)