diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-14 09:22:31 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-14 09:22:31 +0200 |
commit | cb7a3cf7a47bdcf2366efb06e7e4c056394fcfd3 (patch) | |
tree | 7a2835287dacb032d29802936c9203b99e4f967d /src/app.c | |
parent | 672a534a044d811aa57e927288de50360882ac54 (diff) |
Added option for autoshowing images in data URLs
Disabled by default to be consistent with behavior of other links.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -280,6 +280,7 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
280 | { "prefs.collapsepreonload", &d->prefs.collapsePreOnLoad }, | 280 | { "prefs.collapsepreonload", &d->prefs.collapsePreOnLoad }, |
281 | { "prefs.hoverlink", &d->prefs.hoverLink }, | 281 | { "prefs.hoverlink", &d->prefs.hoverLink }, |
282 | { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom }, | 282 | { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom }, |
283 | { "prefs.dataurl.openimages", &d->prefs.openDataUrlImagesOnLoad }, | ||
283 | { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages }, | 284 | { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages }, |
284 | { "prefs.font.warnmissing", &d->prefs.warnAboutMissingGlyphs }, | 285 | { "prefs.font.warnmissing", &d->prefs.warnAboutMissingGlyphs }, |
285 | { "prefs.blink", &d->prefs.blinkingCursor }, | 286 | { "prefs.blink", &d->prefs.blinkingCursor }, |
@@ -2729,6 +2730,10 @@ iBool handleCommand_App(const char *cmd) { | |||
2729 | postRefresh_App(); | 2730 | postRefresh_App(); |
2730 | return iTrue; | 2731 | return iTrue; |
2731 | } | 2732 | } |
2733 | else if (equal_Command(cmd, "prefs.dataurl.openimages.changed")) { | ||
2734 | d->prefs.openDataUrlImagesOnLoad = arg_Command(cmd) != 0; | ||
2735 | return iTrue; | ||
2736 | } | ||
2732 | else if (equal_Command(cmd, "prefs.archive.openindex.changed")) { | 2737 | else if (equal_Command(cmd, "prefs.archive.openindex.changed")) { |
2733 | d->prefs.openArchiveIndexPages = arg_Command(cmd) != 0; | 2738 | d->prefs.openArchiveIndexPages = arg_Command(cmd) != 0; |
2734 | return iTrue; | 2739 | return iTrue; |
@@ -3096,6 +3101,7 @@ iBool handleCommand_App(const char *cmd) { | |||
3096 | setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll); | 3101 | setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll); |
3097 | setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom); | 3102 | setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom); |
3098 | setToggle_Widget(findChild_Widget(dlg, "prefs.font.warnmissing"), d->prefs.warnAboutMissingGlyphs); | 3103 | setToggle_Widget(findChild_Widget(dlg, "prefs.font.warnmissing"), d->prefs.warnAboutMissingGlyphs); |
3104 | setToggle_Widget(findChild_Widget(dlg, "prefs.dataurl.openimages"), d->prefs.openDataUrlImagesOnLoad); | ||
3099 | setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); | 3105 | setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); |
3100 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); | 3106 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); |
3101 | setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); | 3107 | setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); |