Dispatcher: fix action deleted arg (#13488)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

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

View File

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