mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 02:31:48 +01:00
Avoid crash if multiple instances of ClearDatabaseScreen opened
Fixes #8851 I guess we might want to do this for all screens? Maybe?
This commit is contained in:
parent
60456fe0e9
commit
6263817bb4
@ -31,6 +31,7 @@ import cafe.adriel.voyager.core.model.StateScreenModel
|
|||||||
import cafe.adriel.voyager.core.model.coroutineScope
|
import cafe.adriel.voyager.core.model.coroutineScope
|
||||||
import cafe.adriel.voyager.core.model.rememberScreenModel
|
import cafe.adriel.voyager.core.model.rememberScreenModel
|
||||||
import cafe.adriel.voyager.core.screen.Screen
|
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.LocalNavigator
|
||||||
import cafe.adriel.voyager.navigator.currentOrThrow
|
import cafe.adriel.voyager.navigator.currentOrThrow
|
||||||
import eu.kanade.domain.source.interactor.GetSourcesWithNonLibraryManga
|
import eu.kanade.domain.source.interactor.GetSourcesWithNonLibraryManga
|
||||||
@ -58,6 +59,8 @@ import uy.kohesive.injekt.api.get
|
|||||||
|
|
||||||
class ClearDatabaseScreen : Screen {
|
class ClearDatabaseScreen : Screen {
|
||||||
|
|
||||||
|
override val key = uniqueScreenKey
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
override fun Content() {
|
override fun Content() {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
|
Loading…
Reference in New Issue
Block a user