Skip to content

Commit

Permalink
prefChangeListeners are not necessary, currently, but keep them for p…
Browse files Browse the repository at this point in the history
…ossible future use, empty map doesn't hurt much
  • Loading branch information
hg42 committed Jul 31, 2024
1 parent bcae638 commit 5c9128f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ open class Pref(
val prefs get() = prefGroups.values.flatten()
var lockedActions = 0

val prefChangeListeners = mutableStateMapOf<Pref, (pref: Pref) -> Unit>()
val prefChangeListeners = mutableStateMapOf<Pref, (pref: Pref) -> Unit>() //TODO not necessary currently, but may be useful in future, empty map doesn't hurt
private fun onPrefChange(name: String) {
prefChangeListeners.forEach { (pref, listener) ->
listener(pref)
Expand Down

0 comments on commit 5c9128f

Please sign in to comment.