feat: move subscriptions to new notification method
This commit is contained in:
parent
a39db5ea93
commit
808d4e6bf5
32 changed files with 491 additions and 620 deletions
|
@ -11,6 +11,7 @@ import kotlinx.coroutines.flow.first
|
|||
object AnimeSources : WatchSources() {
|
||||
override var list: List<Lazier<BaseParser>> = emptyList()
|
||||
var pinnedAnimeSources: List<String> = emptyList()
|
||||
var isInitialized = false
|
||||
|
||||
suspend fun init(fromExtensions: StateFlow<List<AnimeExtension.Installed>>) {
|
||||
pinnedAnimeSources =
|
||||
|
@ -23,6 +24,7 @@ object AnimeSources : WatchSources() {
|
|||
{ OfflineAnimeParser() },
|
||||
"Downloaded"
|
||||
)
|
||||
isInitialized = true
|
||||
|
||||
// Update as StateFlow emits new values
|
||||
fromExtensions.collect { extensions ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue