diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 21:40:41 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 21:40:41 +0200 |
commit | bb9a22212f83e55ebaf601a65251ccb3caf86fab (patch) | |
tree | 166aa0e7a0351b7a68d40e65b2a61afa0da51d37 /src/prefs.c | |
parent | 35496f8a9c9cc0098210349d5c7fda3492ffd9c8 (diff) |
UI language preference; switching at runtime
IssueID #192
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index a4f12e20..119dfd56 100644 --- a/src/prefs.c +++ b/src/prefs.c | |||
@@ -54,6 +54,7 @@ void init_Prefs(iPrefs *d) { | |||
54 | d->docThemeDark = colorfulDark_GmDocumentTheme; | 54 | d->docThemeDark = colorfulDark_GmDocumentTheme; |
55 | d->docThemeLight = white_GmDocumentTheme; | 55 | d->docThemeLight = white_GmDocumentTheme; |
56 | d->saturation = 1.0f; | 56 | d->saturation = 1.0f; |
57 | initCStr_String(&d->uiLanguage, "en"); | ||
57 | init_String(&d->caFile); | 58 | init_String(&d->caFile); |
58 | init_String(&d->caPath); | 59 | init_String(&d->caPath); |
59 | init_String(&d->geminiProxy); | 60 | init_String(&d->geminiProxy); |
@@ -81,4 +82,5 @@ void deinit_Prefs(iPrefs *d) { | |||
81 | deinit_String(&d->downloadDir); | 82 | deinit_String(&d->downloadDir); |
82 | deinit_String(&d->caPath); | 83 | deinit_String(&d->caPath); |
83 | deinit_String(&d->caFile); | 84 | deinit_String(&d->caFile); |
85 | deinit_String(&d->uiLanguage); | ||
84 | } | 86 | } |