mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
core: add variable "current_layout" in infolist "layout"
This commit is contained in:
@@ -1050,6 +1050,9 @@ gui_layout_add_to_infolist (struct t_infolist *infolist,
|
||||
if (!ptr_item)
|
||||
return 0;
|
||||
|
||||
if (!infolist_new_var_integer (ptr_item, "current_layout",
|
||||
(gui_layout_current == layout) ? 1 : 0))
|
||||
return 0;
|
||||
if (!infolist_new_var_string (ptr_item, "name", layout->name))
|
||||
return 0;
|
||||
if (!infolist_new_var_integer (ptr_item, "internal_id", layout->internal_id))
|
||||
|
||||
Reference in New Issue
Block a user