Profiles: fix updating gestures (#11072)

This commit is contained in:
hius07 authored and GitHub committed 2023-11-08 07:39:59 +02:00
1 parent 2e2ca76a03
commit 51f3115b90
3 files changed
+41 -55

No files matched your search

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