Просмотр исходного кода

Match the CW checkbox status to what is currently configured.

default 3 лет назад
Родитель
Сommit
785c859ce3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      html.c

+ 1 - 1
html.c

@@ -323,7 +323,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
         xs_dict_get(snac->config, "avatar"),
         L("Bio"),
         xs_dict_get(snac->config, "bio"),
-        xs_dict_get(snac->config, "cw"),
+        strcmp(xs_dict_get(snac->config, "cw"), "open") == 0 ? "checked" : "",
         L("Always show sensitive content"),
         L("Email address for notifications"),
         email,