Make migration screen unique in the stack

This commit is contained in:
Jobobby04 2023-02-04 19:44:15 -05:00
parent d24a8d24b9
commit 59d307c6a1

View File

@ -10,6 +10,7 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.platform.LocalContext
import cafe.adriel.voyager.core.model.rememberScreenModel
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import eu.kanade.presentation.browse.MigrationListScreen
@ -27,6 +28,8 @@ class MigrationListScreen(private val config: MigrationProcedureConfig) : Screen
@delegate:Transient
var newSelectedItem by mutableStateOf<Pair<Long, Long>?>(null)
override val key = uniqueScreenKey
@Composable
override fun Content() {
val screenModel = rememberScreenModel { MigrationListScreenModel(config) }