Skip to content

Commit

Permalink
Avoid crash if multiple instances of ClearDatabaseScreen opened
Browse files Browse the repository at this point in the history
Fixes #8851

I guess we might want to do this for all screens? Maybe?
  • Loading branch information
arkon committed Jan 9, 2023
1 parent 60456fe commit 6263817
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import cafe.adriel.voyager.core.model.StateScreenModel
import cafe.adriel.voyager.core.model.coroutineScope
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.domain.source.interactor.GetSourcesWithNonLibraryManga
Expand Down Expand Up @@ -58,6 +59,8 @@ import uy.kohesive.injekt.api.get

class ClearDatabaseScreen : Screen {

override val key = uniqueScreenKey

@Composable
override fun Content() {
val context = LocalContext.current
Expand Down

0 comments on commit 6263817

Please sign in to comment.