Add enabled preference setting (#1539)

* Add enabled preference setting

* Don't change preference if its not enabled
This commit is contained in:
Mitchell Syer
2025-07-21 15:13:17 -04:00
committed by GitHub
parent 798b9d0c98
commit ac5f1a0d93
3 changed files with 20 additions and 1 deletions

View File

@@ -142,6 +142,10 @@ object Source {
val screen = preferenceScreenMap[sourceId]!!
val pref = screen.preferences[position]
if (!pref.isEnabled) {
return
}
val newValue = getValue(pref)
pref.saveNewValue(newValue)