chore(source-feed): Also hide entries already in library (#985)
This commit is contained in:
parent
a843918e7f
commit
2661122d9a
1 changed files with 7 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ open class SourceFeedScreenModel(
|
|||
.toImmutableList()
|
||||
}
|
||||
|
||||
// KMK -->
|
||||
private val hideInLibraryFeedItems = sourcePreferences.hideInLibraryFeedItems().get()
|
||||
// KMK <--
|
||||
|
||||
/**
|
||||
* Initiates get manga per feed.
|
||||
*/
|
||||
|
|
@ -252,6 +256,9 @@ open class SourceFeedScreenModel(
|
|||
page.map { it.toDomainManga(source.id) }
|
||||
.distinctBy { it.url }
|
||||
.let { networkToLocalManga(it) }
|
||||
// KMK -->
|
||||
.filter { !hideInLibraryFeedItems || !it.favorite }
|
||||
// KMK <--
|
||||
}
|
||||
|
||||
mutableState.update { state ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue