Profiles: fix updating gestures (#11072)

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

View File

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