From 3c1db1cd3297c00547e3dfee7df50010f07660bc Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 10 Feb 2020 14:58:22 +0100 Subject: xep-0308: make correction.char themeable --- src/config/theme.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/config') diff --git a/src/config/theme.c b/src/config/theme.c index f081bd21..f7842bab 100644 --- a/src/config/theme.c +++ b/src/config/theme.c @@ -483,6 +483,14 @@ _load_preferences(void) } } + if (g_key_file_has_key(theme, "ui", "correction.char", NULL)) { + gchar *ch = g_key_file_get_string(theme, "ui", "correction.char", NULL); + if (ch && strlen(ch) > 0) { + prefs_set_omemo_char(ch[0]); + g_free(ch); + } + } + // load window positions if (g_key_file_has_key(theme, "ui", "titlebar.position", NULL) && g_key_file_has_key(theme, "ui", "mainwin.position", NULL) && -- cgit 1.4.1-2-gfad0