mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-10 22:34:33 -05:00
Add enabled preference setting (#1539)
* Add enabled preference setting * Don't change preference if its not enabled
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user