mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
fix(preference): Minus and Plus assign missing set(...) call
This commit is contained in:
parent
0374942a34
commit
f15fbdc8cb
3 changed files with 6 additions and 3 deletions
|
@ -9,6 +9,9 @@
|
|||
|
||||
## Other ?? Technical stuff, what happened behind the scene
|
||||
-->
|
||||
## Fixes
|
||||
- Fixed some preference not being saved properly
|
||||
|
||||
## Other
|
||||
- Update dependency co.touchlab:kermit to v2.0.4
|
||||
- Update lifecycle to v2.8.4
|
||||
|
|
|
@ -887,7 +887,7 @@ class LibraryPresenter(
|
|||
return items to hiddenItems
|
||||
}
|
||||
|
||||
private suspend fun getLibraryItems(
|
||||
private fun getLibraryItems(
|
||||
allCategories: List<Category>,
|
||||
libraryManga: List<LibraryManga>,
|
||||
sortingMode: Int,
|
||||
|
|
|
@ -54,11 +54,11 @@ inline fun <reified T, R : T> Preference<T>.getAndSet(crossinline block: (T) ->
|
|||
)
|
||||
|
||||
operator fun <T> Preference<Set<T>>.plusAssign(item: Collection<T>) {
|
||||
get() + item
|
||||
set(get() + item)
|
||||
}
|
||||
|
||||
operator fun <T> Preference<Set<T>>.minusAssign(item: Collection<T>) {
|
||||
get() - item
|
||||
set(get() - item)
|
||||
}
|
||||
|
||||
operator fun <T> Preference<Set<T>>.plusAssign(item: T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue