mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[touchmenu] simplify code and finish early (#14113)
This commit is contained in:
@@ -152,7 +152,7 @@ function IconButton:onHoldIconButton()
|
||||
self.hold_callback()
|
||||
elseif self.hold_input then
|
||||
self:onInput(self.hold_input)
|
||||
elseif type(self.hold_input_func) == "function" then
|
||||
elseif self.hold_input_func then
|
||||
self:onInput(self.hold_input_func())
|
||||
elseif not self.hold_callback then -- nil or false
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user