Procházet zdrojové kódy

Match the CW checkbox status to what is currently configured.

default před 3 roky
rodič
revize
785c859ce3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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"),
         xs_dict_get(snac->config, "avatar"),
         L("Bio"),
         L("Bio"),
         xs_dict_get(snac->config, "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("Always show sensitive content"),
         L("Email address for notifications"),
         L("Email address for notifications"),
         email,
         email,