about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-06-05 11:01:08 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-06-05 11:01:08 +0200
commitc57d0b8c8efbf4ff87ca603b345018f16bdedd34 (patch)
tree592a0c773836535700fe4d4cefcf7942fba3a154 /src
parentfcf4d143742ea1bf42babef32b11e9bbb2e863a0 (diff)
downloadprofani-tty-c57d0b8c8efbf4ff87ca603b345018f16bdedd34.tar.gz
Add omemo.char theme option
Thanks to @kaffekanne for noticing this!
Diffstat (limited to 'src')
-rw-r--r--src/config/theme.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config/theme.c b/src/config/theme.c
index a0ca8356..53f55401 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -574,6 +574,14 @@ _load_preferences(void)
         }
     }
 
+    if (g_key_file_has_key(theme, "ui", "omemo.char", NULL)) {
+        gchar *ch = g_key_file_get_string(theme, "ui", "omemo.char", NULL);
+        if (ch && strlen(ch) > 0) {
+            prefs_set_omemo_char(ch[0]);
+            g_free(ch);
+        }
+    }
+
     if (g_key_file_has_key(theme, "ui", "titlebar.position", NULL) &&
             g_key_file_has_key(theme, "ui", "mainwin.position", NULL) &&
             g_key_file_has_key(theme, "ui", "statusbar.position", NULL) &&