mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +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
|
@ -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