Renamed Main file to App to avoid problems in case insensitive FS
This commit is contained in:
parent
2b3c12e20d
commit
03afe8c1d2
@ -34,7 +34,7 @@ class Main {
|
||||
appComponent.inject(this)
|
||||
}
|
||||
|
||||
fun app() = application {
|
||||
fun start() = application {
|
||||
var isOpen by remember { mutableStateOf(true) }
|
||||
if (isOpen) {
|
||||
Window(
|
@ -1,28 +1,8 @@
|
||||
import androidx.compose.animation.Crossfade
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.ExperimentalComposeUiApi
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.alpha
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.*
|
||||
import androidx.compose.ui.zIndex
|
||||
import app.Main
|
||||
import app.di.DaggerAppComponent
|
||||
import app.git.GitManager
|
||||
import app.git.RepositorySelectionStatus
|
||||
import app.theme.*
|
||||
import app.ui.RepositoryOpenPage
|
||||
import app.ui.WelcomePage
|
||||
import app.ui.components.RepositoriesTabPanel
|
||||
import app.ui.components.TabInformation
|
||||
|
||||
@OptIn(ExperimentalComposeUiApi::class)
|
||||
fun main() {
|
||||
val main = Main()
|
||||
main.app()
|
||||
main.start()
|
||||
}
|
@ -26,7 +26,9 @@ fun RepositoriesTabPanel(
|
||||
onTabsUpdated: (List<TabInformation>) -> Unit,
|
||||
newTabContent: @Composable (tabTitle: MutableState<String>) -> Unit,
|
||||
) {
|
||||
var tabsIdentifier by remember { mutableStateOf(0) }
|
||||
var tabsIdentifier by remember {
|
||||
mutableStateOf(tabs.count())
|
||||
}
|
||||
|
||||
TabPanel(
|
||||
modifier = modifier,
|
||||
|
Loading…
Reference in New Issue
Block a user