Make sure the navigator disposes after migration
This commit is contained in:
parent
76d852313d
commit
9bde4b8b33
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ class MigrationListScreen(private val config: MigrationProcedureConfig) : Screen
|
|||
} + MangaScreen(mangaId)
|
||||
navigator replaceAll newStack.first()
|
||||
navigator.push(newStack.drop(1))
|
||||
|
||||
// need to set the navigator in a pop state to dispose of everything properly
|
||||
navigator.push(this@MigrationListScreen)
|
||||
navigator.pop()
|
||||
} else {
|
||||
navigator.pop()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue