[UX] Add Device:openLink() stub for Linux SDL (#4822)

References #4821.
This commit is contained in:
Frans de Jonge
2019-03-20 16:58:32 +01:00
committed by GitHub
parent 728bb187fa
commit b1ed2838c8
4 changed files with 12 additions and 1 deletions

View File

@@ -614,6 +614,11 @@ function ReaderLink:onGotoLink(link, neglect_current_location, allow_footnote_po
return true
end
-- try opening link in native browser
if Device:openLink(link_url) then
return true
end
-- Not supported
UIManager:show(InfoMessage:new{
text = T(_("Invalid or external link:\n%1"), link_url),