1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 07:46:38 +02:00

relay/api: add field "hidden" in GET /api/buffers (issue #2159)

This commit is contained in:
Sébastien Helleu
2024-08-10 10:25:23 +02:00
parent 07ef722c06
commit b00f94dc70
5 changed files with 25 additions and 0 deletions
+1
View File
@@ -380,6 +380,7 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
if (weechat_strcmp (ptr_string, "free") == 0)
lines = lines_free;
MSG_ADD_STR_PTR("type", ptr_string);
MSG_ADD_HDATA_VAR(Bool, "hidden", integer, "hidden");
MSG_ADD_HDATA_STR_COLORS("title", "title");
MSG_ADD_HDATA_STR_COLORS("modes", "modes");
MSG_ADD_HDATA_STR_COLORS("input_prompt", "input_prompt");