Fix bug with group stereotype

This commit is contained in:
Jean-Patrick Guerrero
2022-06-23 18:23:03 +02:00
parent 3dfcd95c6f
commit c421c49916
2 changed files with 6 additions and 3 deletions

View File

@ -25,9 +25,12 @@ end
local function cache_groups(group, groups)
i3.groups[group] = {}
i3.groups[group].groups = groups
i3.groups[group].stereotype = get_group_stereotype(groups[1])
i3.groups[group].items = groups_to_items(groups)
if #groups == 1 then
i3.groups[group].stereotype = get_group_stereotype(groups[1])
end
local items = i3.groups[group].items
if #items <= 1 then return end