From cb7a3cf7a47bdcf2366efb06e7e4c056394fcfd3 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 14 Feb 2022 09:22:31 +0200 Subject: Added option for autoshowing images in data URLs Disabled by default to be consistent with behavior of other links. --- src/ui/documentwidget.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/documentwidget.c') diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 6513fc33..293e4507 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -2411,8 +2411,9 @@ static const char *zipPageHeading_(const iRangecc mime) { static void postProcessRequestContent_DocumentWidget_(iDocumentWidget *d, iBool isCached) { iWidget *w = as_Widget(d); - /* Embedded images in data links should be shown immediately as they are already fetched - data that is part of the document. */ { + /* Embedded images in data links can be shown immediately as they are already fetched + data that is part of the document. */ + if (prefs_App()->openDataUrlImagesOnLoad) { iGmDocument *doc = d->view.doc; for (size_t linkId = 1; ; linkId++) { const int linkFlags = linkFlags_GmDocument(doc, linkId); -- cgit v1.2.3