diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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; |