[UX] Default setting option always enabled (#5580)
as per https://github.com/koreader/koreader/pull/5522#issuecomment-548006595 do not grey out the current default
This commit is contained in:
1 parent
98555908c8
commit
83b7d8de2b
5 files changed
-10
No files matched your search
@@ -1187,14 +1187,12 @@ function ReaderHighlight:toggleDefault()
|
||||
choice1_text_func = function()
|
||||
return highlight_disabled and _("Disable (★)") or _("Disable")
|
||||
end,
|
||||
choice1_enabled = not highlight_disabled,
|
||||
choice1_callback = function()
|
||||
G_reader_settings:saveSetting("highlight_disabled", true)
|
||||
end,
|
||||
choice2_text_func = function()
|
||||
return highlight_disabled and _("Enable") or _("Enable (★)")
|
||||
end,
|
||||
choice2_enabled = highlight_disabled,
|
||||
choice2_callback = function()
|
||||
G_reader_settings:saveSetting("highlight_disabled", false)
|
||||
end,
|
||||
|
||||
Reference in new issue
Block a user