Allow user to disable confetti animation

This commit is contained in:
2025-03-21 21:29:49 -05:00
parent 245b0eb4d6
commit f68510f860
4 changed files with 16 additions and 0 deletions

View File

@@ -135,6 +135,12 @@ open class Preferences(private val storage: Storage) {
storage.putBoolean("pref_short_toggle", enabled)
}
var isConfettiAnimationDisabled: Boolean
get() = storage.getBoolean("pref_disable_animation", false)
set(enabled) {
storage.putBoolean("pref_disable_animation", enabled)
}
fun removeListener(listener: Listener) {
listeners.remove(listener)
}