diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-26 13:11:44 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-26 13:11:44 +0300 |
commit | 377e3553c8a744d8af7956cf28aabdde720b510c (patch) | |
tree | d6aa915350775a4f0e45c97cdab5a40ca66c37b8 /src/app.c | |
parent | beee7d208c48d82bfe31d9616f382c4d0ca9df33 (diff) |
Preferences: Warn about missing glyphs
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -255,6 +255,7 @@ static iString *serializePrefs_App_(const iApp *d) { | |||
255 | { "prefs.hoverlink", &d->prefs.hoverLink }, | 255 | { "prefs.hoverlink", &d->prefs.hoverLink }, |
256 | { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom }, | 256 | { "prefs.bookmarks.addbottom", &d->prefs.addBookmarksToBottom }, |
257 | { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages }, | 257 | { "prefs.archive.openindex", &d->prefs.openArchiveIndexPages }, |
258 | { "prefs.font.warnmissing", &d->prefs.warnAboutMissingGlyphs }, | ||
258 | }; | 259 | }; |
259 | iForIndices(i, boolPrefs) { | 260 | iForIndices(i, boolPrefs) { |
260 | appendFormat_String(str, "%s.changed arg:%d\n", boolPrefs[i].id, *boolPrefs[i].value); | 261 | appendFormat_String(str, "%s.changed arg:%d\n", boolPrefs[i].id, *boolPrefs[i].value); |
@@ -2493,6 +2494,10 @@ iBool handleCommand_App(const char *cmd) { | |||
2493 | d->prefs.addBookmarksToBottom = arg_Command(cmd) != 0; | 2494 | d->prefs.addBookmarksToBottom = arg_Command(cmd) != 0; |
2494 | return iTrue; | 2495 | return iTrue; |
2495 | } | 2496 | } |
2497 | else if (equal_Command(cmd, "prefs.font.warnmissing.changed")) { | ||
2498 | d->prefs.warnAboutMissingGlyphs = arg_Command(cmd) != 0; | ||
2499 | return iTrue; | ||
2500 | } | ||
2496 | else if (equal_Command(cmd, "prefs.animate.changed")) { | 2501 | else if (equal_Command(cmd, "prefs.animate.changed")) { |
2497 | d->prefs.uiAnimations = arg_Command(cmd) != 0; | 2502 | d->prefs.uiAnimations = arg_Command(cmd) != 0; |
2498 | return iTrue; | 2503 | return iTrue; |
@@ -2802,6 +2807,7 @@ iBool handleCommand_App(const char *cmd) { | |||
2802 | setToggle_Widget(findChild_Widget(dlg, "prefs.imageloadscroll"), d->prefs.loadImageInsteadOfScrolling); | 2807 | setToggle_Widget(findChild_Widget(dlg, "prefs.imageloadscroll"), d->prefs.loadImageInsteadOfScrolling); |
2803 | setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll); | 2808 | setToggle_Widget(findChild_Widget(dlg, "prefs.hidetoolbarscroll"), d->prefs.hideToolbarOnScroll); |
2804 | setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom); | 2809 | setToggle_Widget(findChild_Widget(dlg, "prefs.bookmarks.addbottom"), d->prefs.addBookmarksToBottom); |
2810 | setToggle_Widget(findChild_Widget(dlg, "prefs.font.warnmissing"), d->prefs.warnAboutMissingGlyphs); | ||
2805 | setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); | 2811 | setToggle_Widget(findChild_Widget(dlg, "prefs.archive.openindex"), d->prefs.openArchiveIndexPages); |
2806 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); | 2812 | setToggle_Widget(findChild_Widget(dlg, "prefs.ostheme"), d->prefs.useSystemTheme); |
2807 | setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); | 2813 | setToggle_Widget(findChild_Widget(dlg, "prefs.customframe"), d->prefs.customFrame); |