Fix backup/restore of category related preferences (#1726)

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
Cuong-Tran
2025-02-25 05:04:39 +07:00
committed by GitHub
parent 1a5b4c2804
commit e1724d1aa0
7 changed files with 135 additions and 55 deletions

View File

@ -57,6 +57,10 @@ operator fun <T> Preference<Set<T>>.plusAssign(item: T) {
set(get() + item)
}
operator fun <T> Preference<Set<T>>.plusAssign(items: Iterable<T>) {
set(get() + items)
}
operator fun <T> Preference<Set<T>>.minusAssign(item: T) {
set(get() - item)
}