Removed unnecessary loop
This commit is contained in:
parent
e59fe7df69
commit
ed704a629b
@ -309,7 +309,6 @@ class App {
|
||||
},
|
||||
onTabClosed = onCloseTab,
|
||||
onAddNewTab = onAddedTab,
|
||||
tabsHeight = 36.dp,
|
||||
onMoveTab = { fromIndex, toIndex ->
|
||||
tabsManager.onMoveTab(fromIndex, toIndex)
|
||||
},
|
||||
@ -345,12 +344,7 @@ private fun TabContent(tabs: List<TabInformation>, currentTab: TabInformation?)
|
||||
.fillMaxSize(),
|
||||
) {
|
||||
if (currentTab != null) {
|
||||
for (tab in tabs) {
|
||||
if (tab == currentTab) {
|
||||
AppTab(currentTab.tabViewModel)
|
||||
}
|
||||
}
|
||||
|
||||
AppTab(currentTab.tabViewModel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,6 @@ import kotlin.io.path.name
|
||||
fun RepositoriesTabPanel(
|
||||
tabs: List<TabInformation>,
|
||||
currentTab: TabInformation?,
|
||||
tabsHeight: Dp,
|
||||
onTabSelected: (TabInformation) -> Unit,
|
||||
onTabClosed: (TabInformation) -> Unit,
|
||||
onMoveTab: (Int, Int) -> Unit,
|
||||
@ -99,7 +98,7 @@ fun RepositoriesTabPanel(
|
||||
Row {
|
||||
LazyRow(
|
||||
modifier = Modifier
|
||||
.height(tabsHeight)
|
||||
.height(36.dp)
|
||||
.weight(1f, false)
|
||||
.horizontalDragContainer(
|
||||
dragDropState = dragDropState,
|
||||
|
Loading…
Reference in New Issue
Block a user