Fix crash on book status change (#5453)

pull/5450/head
Robert 5 years ago committed by poire-z
parent 529d2d91d6
commit 7badb67e3d

@ -217,7 +217,9 @@ function ToggleSwitch:onTapSelect(arg, gev)
self.config:onConfigEvents(self.events, self.position)
end
--]]
self.callback(self.position)
if self.callback then
self.callback(self.position)
end
if self.toggle[self.position] ~= "" then
self.config:onConfigChoose(self.values, self.name,
self.event, self.args, self.events, self.position, self.delay_repaint)

Loading…
Cancel
Save