mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
[touchmenu] simplify code and finish early (#14113)
This commit is contained in:
@@ -1593,7 +1593,7 @@ function ReaderLink:getButtonsForExternalLinkDialog(link_url)
|
||||
local button = fn_button(self, link_url)
|
||||
local show, button_title
|
||||
|
||||
if type(button.show_in_dialog_func) == "function" then
|
||||
if button.show_in_dialog_func then
|
||||
show, button_title = button.show_in_dialog_func(link_url)
|
||||
else
|
||||
-- If the button doesn't have the show_in_dialog_func, then assume that the button
|
||||
|
||||
Reference in New Issue
Block a user