Dispatcher: fix action deleted arg (#13488)

This commit is contained in:
hius07 authored and GitHub committed 2025-04-05 09:50:28 +03:00
1 parent d799468a80
commit 0a9169edfd
3 files changed
+12 -5

No files matched your search

@@ -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