mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Dispatcher: fix action deleted arg (#13488)
This commit is contained in:
@@ -724,6 +724,7 @@ function ReaderStyleTweak:onToggleStyleTweak(tweak_id, item, no_notification)
|
||||
if type(tweak_id) == "table" then -- Dispatcher action 'Style tweak set on/off'
|
||||
tweak_id, toggle = unpack(tweak_id)
|
||||
end
|
||||
if self.tweaks_by_id[tweak_id] == nil then return true end
|
||||
local enabled, g_enabled = self:isTweakEnabled(tweak_id)
|
||||
if enabled == toggle then return true end
|
||||
local text
|
||||
|
||||
Reference in New Issue
Block a user