Make migration screen unique in the stack
This commit is contained in:
parent
d24a8d24b9
commit
59d307c6a1
@ -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) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user