diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 14:36:57 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 14:36:57 +0200 |
commit | 2007dc961480151721e646aac468a0ae5639b18f (patch) | |
tree | 0041ce7231fd2aa1444465934848f3bbe6a182cb /src/ui/documentwidget.c | |
parent | 11a3590215674b9b1278629f24954ed1e5f586a3 (diff) |
Mobile: Link info in context menu
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 313fe2ee..81aa382f 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -4851,8 +4851,10 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
4851 | iBool isNative = iFalse; | 4851 | iBool isNative = iFalse; |
4852 | if (deviceType_App() != desktop_AppDeviceType) { | 4852 | if (deviceType_App() != desktop_AppDeviceType) { |
4853 | /* Show the link as the first, non-interactive item. */ | 4853 | /* Show the link as the first, non-interactive item. */ |
4854 | iString *infoText = collectNew_String(); | ||
4855 | infoText_LinkInfo(d->view.doc, d->contextLink->linkId, infoText); | ||
4854 | pushBack_Array(&items, &(iMenuItem){ | 4856 | pushBack_Array(&items, &(iMenuItem){ |
4855 | format_CStr("```%s", cstr_String(linkUrl)), | 4857 | format_CStr("```%s", cstr_String(infoText)), |
4856 | 0, 0, NULL }); | 4858 | 0, 0, NULL }); |
4857 | } | 4859 | } |
4858 | if (willUseProxy_App(scheme) || isGemini || | 4860 | if (willUseProxy_App(scheme) || isGemini || |