summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-14 09:22:31 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-14 09:22:31 +0200
commitcb7a3cf7a47bdcf2366efb06e7e4c056394fcfd3 (patch)
tree7a2835287dacb032d29802936c9203b99e4f967d /src/ui/documentwidget.c
parent672a534a044d811aa57e927288de50360882ac54 (diff)
Added option for autoshowing images in data URLs
Disabled by default to be consistent with behavior of other links.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 3 insertions, 2 deletions
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) {
2411 2411
2412static void postProcessRequestContent_DocumentWidget_(iDocumentWidget *d, iBool isCached) { 2412static void postProcessRequestContent_DocumentWidget_(iDocumentWidget *d, iBool isCached) {
2413 iWidget *w = as_Widget(d); 2413 iWidget *w = as_Widget(d);
2414 /* Embedded images in data links should be shown immediately as they are already fetched 2414 /* Embedded images in data links can be shown immediately as they are already fetched
2415 data that is part of the document. */ { 2415 data that is part of the document. */
2416 if (prefs_App()->openDataUrlImagesOnLoad) {
2416 iGmDocument *doc = d->view.doc; 2417 iGmDocument *doc = d->view.doc;
2417 for (size_t linkId = 1; ; linkId++) { 2418 for (size_t linkId = 1; ; linkId++) {
2418 const int linkFlags = linkFlags_GmDocument(doc, linkId); 2419 const int linkFlags = linkFlags_GmDocument(doc, linkId);