mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Profiles: fix updating gestures (#11072)
This commit is contained in:
@@ -566,10 +566,8 @@ You can enable individual tweaks on this book with a tap, or view more details a
|
||||
if self.tweaks_in_dispatcher[item.id] then
|
||||
self.tweaks_in_dispatcher[item.id] = nil
|
||||
dispatcherUnregisterStyleTweak(item.id)
|
||||
local Profiles = self.ui.profiles
|
||||
if Profiles then
|
||||
Profiles:updateGestures(self.dispatcher_prefix..item.id)
|
||||
Profiles:updateProfiles(self.dispatcher_prefix..item.id)
|
||||
if self.ui.profiles then
|
||||
self.ui.profiles:updateProfiles(self.dispatcher_prefix..item.id)
|
||||
end
|
||||
else
|
||||
self.tweaks_in_dispatcher[item.id] = item.title
|
||||
|
||||
Reference in New Issue
Block a user