summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-27 19:10:57 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-27 19:10:57 +0300
commit3a58ca94b59aa867f46cbfe30d5bd85eb9f986de (patch)
tree077198cef86b6a18795b94d59a221d37982237f4 /src/app.c
parent57caccea67c62a5064f963430842cd81af5cf7bd (diff)
Upgrade assistance: download "classic-set" fontpack
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index f4d9f30b..5f7776b0 100644
--- a/src/app.c
+++ b/src/app.c
@@ -406,6 +406,7 @@ static void loadPrefs_App_(iApp *d) {
406 UI strings may not have the right fonts available for the UI to remain 406 UI strings may not have the right fonts available for the UI to remain
407 usable. */ 407 usable. */
408 postCommandf_App("uilang id:en"); 408 postCommandf_App("uilang id:en");
409 postCommand_App("~fontpack.suggest.classic");
409 } 410 }
410#if !defined (LAGRANGE_ENABLE_CUSTOM_FRAME) 411#if !defined (LAGRANGE_ENABLE_CUSTOM_FRAME)
411 d->prefs.customFrame = iFalse; 412 d->prefs.customFrame = iFalse;
@@ -2135,6 +2136,21 @@ iBool handleCommand_App(const char *cmd) {
2135 suffixPtr_Command(cmd, "where"))); 2136 suffixPtr_Command(cmd, "where")));
2136 return iTrue; 2137 return iTrue;
2137 } 2138 }
2139 else if (equal_Command(cmd, "fontpack.suggest.classic")) {
2140 if (!isInstalled_Fonts("classic-set") && !isInstalled_Fonts("cjk")) {
2141 makeQuestion_Widget(
2142 uiHeading_ColorEscape "${heading.fontpack.classic}",
2143 "${dlg.fontpack.classic.msg}",
2144 (iMenuItem[]){
2145 { "${cancel}" },
2146 { uiTextAction_ColorEscape "${dlg.fontpack.classic}",
2147 0,
2148 0,
2149 "!open newtab:1 url:gemini://skyjake.fi/fonts/classic-set.fontpack" } },
2150 2);
2151 }
2152 return iTrue;
2153 }
2138 else if (equal_Command(cmd, "prefs.changed")) { 2154 else if (equal_Command(cmd, "prefs.changed")) {
2139 savePrefs_App_(d); 2155 savePrefs_App_(d);
2140 return iTrue; 2156 return iTrue;